<?php /* Smarty version Smarty-3.1.6, created on 2017-09-21 14:46:31
         compiled from "D:\wamp64\www\sama\Tpl\FrontChannel\post_detail.html" */ ?>
<?php /*%%SmartyHeaderCode:2956459c09b6b8d1403-06296206%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '93a2a393384460bee285f602b41dd720327f2b96' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\FrontChannel\\post_detail.html',
      1 => 1505974681,
      2 => 'file',
    ),
    'a3d5459f7f5a8a2b6cc7d0536e24b1d9890fe746' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\home.html',
      1 => 1505964471,
      2 => 'file',
    ),
    'd23f22973b2926fb6e7997d8485afa5ea055a210' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\FrontChannel\\praise_detail_content.html',
      1 => 1505975388,
      2 => 'file',
    ),
    '02a7113663dca7ae33c507869d35138d9f89dc94' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\FrontChannel\\reward_detail_content.html',
      1 => 1504516331,
      2 => 'file',
    ),
    'd117c25322aaa14033b98d2fe354f057b2aaaebc' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\FrontChannel\\crowdfunding_detail_content.html',
      1 => 1504516331,
      2 => 'file',
    ),
    'ad3b57ab3c0fa90fc9f35906c49bc9de368525e9' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\FrontChannel\\praise_comment_hide.html',
      1 => 1504516331,
      2 => 'file',
    ),
    '9bb83ccb4ac1baea818c0b396bfb7796606b5d31' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\FrontChannel\\support_list.html',
      1 => 1504516331,
      2 => 'file',
    ),
    'fe1b52bc1b333c22cbabd159c3ccdea88422c0a1' => 
    array (
      0 => 'D:\\wamp64\\www\\sama\\Tpl\\FrontChannel\\reward_refund.html',
      1 => 1504516331,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2956459c09b6b8d1403-06296206',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_59c09b6d92e79',
  'variables' => 
  array (
    'pc_site' => 0,
    'version' => 0,
    'user_id' => 0,
    'wx_share_link' => 0,
    'share_info' => 0,
    'head_title' => 0,
    'signPackage' => 0,
    'tpl_path' => 0,
    'kf_info' => 0,
    'is_read' => 0,
    'has_deflt_addr' => 0,
    'default_addr_string' => 0,
    'first' => 0,
    'client_ip' => 0,
    'npw_pay' => 0,
    'isios' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59c09b6d92e79')) {function content_59c09b6d92e79($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['pc_site']->value==1){?>
<!doctype html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
</title>
<!-- CSS -->
<link rel="stylesheet" href="__PUBLIC__/Css/front/style.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Css/front/colors.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Css/front/skeleton.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Css/front/layout.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Css/front/ddsmoothmenu.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Css/front/elastislide.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Css/front/home_flexslider.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Css/front/light_box.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">
<link rel="stylesheet" href="__PUBLIC__/Plugins/jPops/jquery.jpops.min-v3.css">

<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/front/front_css/refresh_load.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"/>
<link rel="stylesheet" type="text/css" href="/Public/Css/front/front_css/recharge_pay_pop.css">

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
<link href="__PUBLIC__/Css/front/css/zanshang_detail.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
<link href="__PUBLIC__/Css/front/css/xuanshang_detail.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/Css/front/css/xuanshang_lz.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
<link href="__PUBLIC__/Css/front/css/zhonchou_detail.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/Css/front/css/louzhu.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }else{ ?>
<link href="__PUBLIC__/Css/front/css/common_tiezi.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }?>
<style type="text/css">

/*全屏查看器样式*/
.fullscreen{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 10000;
	background-color: #000;
	display: none;
}
.fullscreen .fullscreen_slide{
	background-color: #000;
}
/*密码框*/
#pwd_box{
	width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    position: fixed;
    display: block;
    top: 0;
    z-index: 1001;
	display: none;
}
#pwd_box .pop_back{
	width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    position: fixed;
    display: block;
    top: 0;
    z-index: 1001;
}
#pwd_box .pwd_pop{
	width: 100%;
    height: 10rem;
    position: absolute;
    bottom: 0;
    z-index: 1001;
    background-color: #fff;
}
.pwd_detail{
	width: 100%;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 0.9rem;
    color: #323232;
    text-align: center;
    border-bottom: 0.05rem solid #E1E1E1;;
}
.close_pwd {
    background-image: url(/Public/Images/front/front_img/icon_sign_close.png);
    width: 1.1rem;
    height: 1.1rem;
    background-size: 1.1rem 1.1rem;
    position: absolute;
    top: 0.7rem;
    left: 3.2%;
}
.input_box{
	width: 17.1rem;
	margin:.75rem auto;
	position: relative;
	height: 2.3rem;
}

.dot{
	width: 2.875rem;
    height: 2.3rem;
    border: 0.05rem solid #efefef;
    position: absolute;
    top:0;
    left: 0;
    background-color: #fff;
    box-sizing: border-box;
    border-right: 0;
}
.dot::after{
	content: "";
	width: 0.4rem;
    height: .4rem;
    border-radius: 50%;
    display: block;
    background-color: #000;
    position: absolute;
    top:0;
    right: 0;
    bottom: 0;
    left:0;
    margin: auto;
    display: none;
}
.dot.show::after{
	display: block;
}
.dot_1{
	left:0;
}
.dot_2{
	left: 2.875rem;
}
.dot_3{
	left: 5.75rem;
}	
.dot_4{
	left:8.625rem;
}
.dot_5{
	left: 11.5rem;
}
.dot_6{
	left:14.375rem;
	border-right: 1px solid #efefef;
}
.input_box input{
	width: 150%;
	height: 2.3rem;
	position: absolute;
	left: 0;
	top:0;
	background: transparent;
	z-index: 10;
	color: transparent;
	text-indent: -999px;
	margin-left: -50%;
	line-height: 0;
}
.forget_pwd{
	width: 17.1rem;
	margin: auto;
	font-size: .65rem;
	line-height: .9rem;
	color: #4A90E2;
	text-align: right;
}
.forget_pwd a{
	color: #4A90E2;
}

.user_comment .at{
	color:#3385ff;
}

/*删除提示框*/
.confirm_box{
	background: rgba(0,0,0,.4);
	font-size: 15px!important;
    z-index: 9999;
    text-align: center;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.confirm_box>div {
    overflow: hidden;
    position: absolute;
    left: 13.5%;
    top: 50%;
    width: 73%;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.confirm_box>div>h1 {
    font-size: 15px!important;
    font-style: normal;
    padding: 15px 10px 10px;
    color: #333;
}
.confirm_box> div > a {
    font-size: 16px !important;
    display: block;
    line-height: 40px;
    color: #007AFF;
    text-decoration: none;
    border-top: 1px solid #DBDCDC;
}
.confirm_box i{
	font-style: normal;
    float: left;
    width: 50%;
}
.confirm_box i:first-child {
    margin-right: -1px;
    border-right: 1px solid #DBDCDC;
}

.jubao{
	color:#696969;
	font-size: .7rem;
	position: absolute;
	right: 0;
	top:0;
	z-index: 10;
}
.jubao_box{
	display: none;
}
.jubao_box .mask{
	position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.jubao_box .jubao_box_content{
	position: fixed;
    z-index: 5000;
    width: 16.25rem;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #FFFFFF;
	background: #FFFFFF;
	border-radius: 8px;
}
.jubao_box .jubao_box_content_hd h4{
	font-size: 0.8rem;
	line-height: 1.1rem;
	padding: 0.55rem 0;
	color: #323232;
	letter-spacing: -0.39px;
	background: #EFEFF4;
	border-radius: 8px 8px 0 0;
	text-align: center;
}
.jubao_box .jubao_box_content_bd{
	padding: 0 0.75rem;
	border-bottom: 1px solid #EFEFEF;
}
.jubao_box_row{
	font-size: 0.8rem;
	color: #323232;
	letter-spacing: 0;
	padding: 0.5rem 0;
	border-bottom: 1px solid #EFEFEF;
}
.jubao_box_row:last-child{
	border-bottom: none;
}
.jubao_box_row span{
	float: left;
}
.jubao_box_content_ft{
	padding:  1rem 0;
}

.jb_tijiao{
	background:#696969;
	border-radius: 4px;
	width: 12.5rem;
	color: #fff;
	margin:auto;
	display:block;
	line-height: 1rem;
	font-size: 0.9rem;
	padding:  0.5rem 0;
	text-align: center;
}
.jb_btn_close{
	width: 1.5rem;
	height: 3.5rem;
	background: url(/Public/Images/img/icon_guanbi2@3x.png) no-repeat;
	background-size: 100% 100%;
	display: block;
	position: absolute;
	top:-3.5rem;
	right: 0;
}

.jubao_box_row .icon_nochoose{
	width: .85rem;
    height: .85rem;
    background: url(/Public/Images/img/icon_no_choose@3x.png) no-repeat;
    background-size: 100% 100%;
    float: right;
    margin-top: .125rem;
}
.jubao_box_row.active .icon_nochoose {
    background: url(/Public/Images/img/choose@3x.png) no-repeat;
    background-size: 100% 100%;
}


</style>

<!-- 失败默认图片 -->
<script>
function no_pic(obj) {
  obj.setAttribute("src", "/Public/Images/front/nopicture.png");
}
</script>
</head>
<body>
	<?php echo $_smarty_tpl->getSubTemplate ("./footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	<!-- <div class="container"> -->
	<?php if (@ACTION_NAME=='index'){?>
	<?php echo $_smarty_tpl->getSubTemplate ("top_ads.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
	
	<?php }?>
	<?php if (@ACTION_NAME!='login'){?>
	<?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
	
	<?php }?>
	

	
<div class="com_header">
	<a href="javascript:;" class="go_back"><i class="icon_back"></i></a><?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
<a class="louzhu native_go <?php if ($_smarty_tpl->tpl_vars['see_lz']->value){?>active<?php }?>"  href='/FrontChannel/post_detail/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
<?php if (!$_smarty_tpl->tpl_vars['see_lz']->value){?>/see_lz/1<?php }?>'>
只看楼主</a>
</div>


<div id="load_wrapper" style="margin-top: 2.2rem;margin-bottom: 2.5rem">
	<div id="scroller">
		<div id="pullDown">
		    <span class="pullDownIcon"></span>
		</div>

	<div class="user_header clearfix" >
		 <a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['user_id'];?>
" class="avatar native_go">
		 	<img data-src="<?php echo $_smarty_tpl->tpl_vars['post_user']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" src="/Public/Images/img/no-img.png" alt="">
		 </a>
		 <div class="user_main clearfix">
		 	<a class="nickname native_go" data-url="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['post_user']->value['nickname'];?>
</a>
		 	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['title_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
		 	<i class="tag" style="background-color:<?php echo $_smarty_tpl->tpl_vars['v']->value['title_color'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['title_name'];?>
</i>
		 	<?php } ?>
		 </div>
		 <p style="position: relative;"><?php echo $_smarty_tpl->tpl_vars['post']->value['addtime'];?>
<span class="type"><?php echo $_smarty_tpl->tpl_vars['channel']->value['channel_name'];?>
</span>
			<span class="jubao">举报</span>
		 </p>
		 	
		 	 <?php if ($_smarty_tpl->tpl_vars['del']->value){?>
			 <!-- 删除 -->
			 <p class="delete" id="delete" style="color: #2C77A5;line-height: 1rem;font-size: .7rem;margin-top: .6rem;">删除本贴</p>
			 <?php }?>

		 <?php if ($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
		 	<?php if ($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::SUCCESS){?>
			 <!-- 成功 -->
			 <div class="zhonchou_succ"></div>
			<?php }elseif($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::FAILURE){?>
			 <!-- 失败 -->
			 <div class="zhonchou_fail"></div>
			 <?php }?>
		 <?php }?>
	</div>

	<div class="post_content">
		<h2><?php echo $_smarty_tpl->tpl_vars['post']->value['title'];?>
</h2>
		<p><?php echo $_smarty_tpl->tpl_vars['post']->value['content'];?>
</p>
		<div class="post_imgs">
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['post_imgs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
			<img data-src="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" alt="" data-row="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" alt="" src="/Public/Images/img/no-img.png">
			<?php } ?>
		</div>
		
		<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'&&$_smarty_tpl->tpl_vars['see_hide']->value){?>
		<!-- 隐藏内容 -->
		<div class="hide_content" >
			<p>
				<?php echo $_smarty_tpl->tpl_vars['praise_hide']->value['content'];?>

			</p>
			<div class="post_imgs">
				<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['praise_hide']->value['hide_imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
				<img  src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" alt="" data-row="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" src="/Public/Images/img/no-img.png">
				<?php } ?>
			</div>		
		</div>
		<?php }?>

	</div>

	<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
		<?php /*  Call merged included template "./praise_detail_content.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./praise_detail_content.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c3604800032($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./praise_detail_content.html" */?>
	<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
		<?php /*  Call merged included template "./reward_detail_content.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./reward_detail_content.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c3604812ba5($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./reward_detail_content.html" */?>
	<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
		<?php /*  Call merged included template "./crowdfunding_detail_content.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./crowdfunding_detail_content.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c360483f5b6($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./crowdfunding_detail_content.html" */?>
	<?php }?>
	

	<!-- 用户评论 -->
	<div class="user_comment">
		<h5 class="comment_title">用户评论（<?php echo $_smarty_tpl->tpl_vars['post']->value['comment_num'];?>
）</h5>
		<div class="comment_list" id='comment_list'>
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['comment_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
			<div class="comment_item">
				<div class="comment_top">
					<a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['v']->value['user_id'];?>
" class="avatar native_go">
						<img data-src="<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" alt="" src="/Public/Images/img/no-img.png">
						<?php if ($_smarty_tpl->tpl_vars['v']->value['is_lz']){?><span class="lz_tag">楼主</span><?php }?>
					</a>
					<div class="comment_user">
						<div class="user_info"><a class="nickname native_go" href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['v']->value['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['nickname'];?>
</a>
							<?php  $_smarty_tpl->tpl_vars['title'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['title']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['v']->value['title_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['title']->key => $_smarty_tpl->tpl_vars['title']->value){
$_smarty_tpl->tpl_vars['title']->_loop = true;
?>
							<i class="tag" style="background-color:<?php echo $_smarty_tpl->tpl_vars['title']->value['title_color'];?>
"><?php echo $_smarty_tpl->tpl_vars['title']->value['title_name'];?>
</i>
							<?php } ?>
						</div>
						<div class="other clearfix">
							<span class="floor"><?php echo $_smarty_tpl->tpl_vars['v']->value['floor'];?>
楼</span>
							<span class="time"><?php echo $_smarty_tpl->tpl_vars['v']->value['addtime'];?>
</span>
							<span class="zan_num"><?php echo $_smarty_tpl->tpl_vars['v']->value['praise_num'];?>
</span>
							<i class="icon_zan <?php if ($_smarty_tpl->tpl_vars['v']->value['is_praise']){?>hover<?php }?>" data-comment_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['post_comment_id'];?>
"></i>
							<i class="icon_pl" data-comment_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['post_comment_id'];?>
" data-nickname="<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['nickname'];?>
"></i>
						</div>
						<div class="text" data-comment_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['post_comment_id'];?>
" data-nickname="<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['nickname'];?>
">
							<?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>

						</div>
						<ul class="imgbox clearfix">
							<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['v']->value['imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
							<li><img src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageView2/1/w/200/h/200/imageslim" alt="" class="img" data-row="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/imageslim"></li>
							<?php } ?>
						</ul>
						
						<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
							<?php /*  Call merged included template "./praise_comment_hide.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("./praise_comment_hide.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c3604869aea($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./praise_comment_hide.html" */?>
						<?php }?>
					</div>
				</div>
				<?php if ($_smarty_tpl->tpl_vars['v']->value['reply_comment_list']){?>
				<div class="comment_cont">
					<ul>
						<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['v']->value['reply_comment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
						<li><span class="nick"><?php echo $_smarty_tpl->tpl_vars['item']->value['nickname'];?>
：</span><?php echo $_smarty_tpl->tpl_vars['item']->value['content'];?>
</li>
						<?php } ?>
					</ul>
				</div>
				<?php }?>
			</div>
			<?php } ?>
		</div>
	</div>

		<div id="pullUp">
			<!-- <span class="pullUpIcon"> --></span><span class="pullUpLabel">上拉加载...</span>
		</div>
	</div>
</div>




<!-- 全屏图片查看器-->
<div class="swiper-container fullscreen" id="fullscreen">
	<div class="swiper-wrapper" id="swiper_wrapper">
	</div>
</div>
<!-- 普通底部 -->
<div class="fixed_footer">
	<div class="input">
		一起来补魔吧(●ˇ∀ˇ●)
	</div>
	<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'&&$_smarty_tpl->tpl_vars['is_lz']->value){?>
	<!-- 有楼主回帖按钮 -->
	<a class="huitie native_go" href="/FrontChannel/praise_lz_ht/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
">回帖</a>
	<?php }?>
	<i class="zan <?php if ($_smarty_tpl->tpl_vars['post_is_praise']->value){?>active<?php }?>"></i>
	<i class="coll <?php if ($_smarty_tpl->tpl_vars['is_collect']->value){?>active<?php }?>"></i>
	<i class="share" onclick="return_share();"></i>
</div>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
	<?php /*  Call merged included template "./support_list.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./support_list.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c360487b78a($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./support_list.html" */?>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
	<?php /*  Call merged included template "./reward_refund.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./reward_refund.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c36048872b4($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./reward_refund.html" */?>
<?php }?>


<!--支付弹窗-->
<div id="pay_box" style="display: none;">
	<div class="pop_back"></div>
	<div class="pay_pop">
		<div class="recharge_detail">
			<span class="close_pay"></span>
			充值详情
		</div>

		<div class="recharge_amount">
			充值金额
			<span class="amount">0元</span>
		</div>
		<div class="interval"></div>
		<div class="choose_pay">
			<div class="title">选择支付方式</div>
			<div class="pay" data-pay_way="alipay">
				<i class="icon_pay zhifubao"></i>
				<p>支付宝支付</p>
				<span class="paymethod on"><input type="radio"   name="pay_method" value="alipay" class="radioclass" checked></span>
			</div>
			<div class="pay" data-pay_way="wx_pay">
				<i class="icon_pay weixin"></i>
				<p>微信支付</p>
				<span class="paymethod"><input type="radio"  name="pay_method" value="wx_pay" class="radioclass"></span>
			</div>
		</div>
		<input type="submit" class="confirm" value="支付" id="zhifu">
	</div>	
</div>
<!--充值弹窗-->
<div id="recharge" style="display: none;">
	<div class="pop_back"></div>
	<div class="recharge_pop">
		<div class="recharge_detail">
			<span class="close_recharge"></span>
			余额不足，需先充值
		</div>
		<div class="choose_amount">
			<p>请选择充值金额</p>
			<div class="btn_group">
				<span class="btn money" data-money="20">20元</span>
				<span class="btn active money" data-money="50">50元</span>
				<span class="btn money" data-money="100">100元</span>
				<span class="btn money" data-money="200">200元</span>
				<span class="btn money" data-money="500">500元</span>
				<span class="btn money" data-money="1000">1000元</span>
				<span class="btn money" data-money="2000">2000元</span>
				<span class="btn money zdy_money" data-money="" style="display: none"></span>
				<input type="number" placeholder="自定义" onfocus="this.placeholder='';$('.money').removeClass('active');" onblur="this.placeholder='自定义'" class="btn customize">
			</div>
		</div>
		<div class="balance">钱包余额<span style="color:#ff6600">0元</span></div>
		<input type="submit" class="confirm" style="top:0.7rem" value="充值" id="chongzhi">
	</div>
</div>
<!-- 密码 -->
<div id="pwd_box">
	<!-- <div class="pop_back"></div> -->
	<div class="pwd_pop">
		<div class="pwd_detail">
			<span class="close_pwd"></span>
			输入支付密码
		</div>
		<div class="input_box">
			<input type="tel" maxlength="6" id="pwd_ipt">
				<span class="dot dot_1"></span> 
				<span class="dot dot_2"></span> 
				<span class="dot dot_3"></span> 
				<span class="dot dot_4"></span> 
				<span class="dot dot_5"></span> 
				<span class="dot dot_6"></span> 
		</div>
		<p class="forget_pwd native_go"><a href="/FrontUserCenter/forget_pay_psw">忘记密码&nbsp;</a></p>
	</div>
</div>

<?php if ($_smarty_tpl->tpl_vars['del']->value||$_smarty_tpl->tpl_vars['is_jd']->value){?>
<!-- 删除提示 -->
<div class="confirm_box" style="display: none;">
	<div>
		<h1>你确定要删除吗？</h1>
		<!-- <p>提示内容</p> -->
		<a><i id="confirmOk">确定</i><i id="confirmCancel">取消</i></a>
	</div>
</div>
<?php }?>

<!-- 举报 -->
<div class="jubao_box">
	<div class="mask"></div>
	<div class="jubao_box_content">
		<div class="jubao_box_content_hd">
			<h4>选择举报原因</h4>
		</div>
		<div class="jubao_box_content_bd">
			<div class="jubao_box_row clearfix">
				<span>广告</span><i class="icon_nochoose"></i>
			</div>
			<div class="jubao_box_row clearfix">
				<span>色情</span><i class="icon_nochoose"></i>
			</div>
			<div class="jubao_box_row clearfix">
				<span>其他</span><i class="icon_nochoose"></i>
			</div>
		</div>
		<div class="jubao_box_content_ft">
			<a href="javascript:;" class="jb_tijiao">提交</a>
		</div>
		<!-- 关闭 -->
		<div class="jb_btn_close"></div>
	</div>
</div>

	<!-- </div> -->
	<?php if (@ACTION_NAME!='login'){?>
	<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
	
	<?php echo $_smarty_tpl->getSubTemplate ("customer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	<?php }?>
	<script>
		var user_id = '<?php echo $_smarty_tpl->tpl_vars['user_id']->value;?>
';
		//分享信息
		var link = '<?php echo $_smarty_tpl->tpl_vars['wx_share_link']->value;?>
';
		var img = '<?php echo $_smarty_tpl->tpl_vars['share_info']->value['pic'];?>
';
		var title = '<?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
';
		var desc = '<?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
';
		var appId = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['appId'];?>
';
		var timestamp = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['timestamp'];?>
';
		var nonceStr = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['nonceStr'];?>
';
		var signature = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['signature'];?>
';
	</script>
	<!--JS-->
	<script src="__PUBLIC__/Js/front/jquery-1.8.2.min.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/common.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/jquery.easing.1.3.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/ddsmoothmenu.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/jquery.flexslider.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/jquery.elastislide.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/jquery.jcarousel.min.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/jquery.accordion.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/light_box.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Plugins/jPops/jquery.jpops.min-v3.js"></script>
	<script src="__PUBLIC__/Js/front/html5.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/wxapi.js"></script>
	<!--end js-->
	<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	
<script>
	var total = parseInt('<?php echo $_smarty_tpl->tpl_vars['total']->value;?>
');
    var firstRow = parseInt('<?php echo $_smarty_tpl->tpl_vars['firstRow']->value;?>
');
    var post_id = parseInt('<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
');
    var praiseing = false;
    var collecting = false;
    var see_lz = parseInt('<?php echo $_smarty_tpl->tpl_vars['see_lz']->value;?>
');
    var item_id = 0;
    var buying = false;
    var recharge_num = 0;

    //分享的参数
	var share_title = <?php if ($_smarty_tpl->tpl_vars['post']->value['title']){?>'<?php echo $_smarty_tpl->tpl_vars['post']->value['title'];?>
'<?php }else{ ?>'sama'<?php }?>;
	var share_pic = '<?php echo $_smarty_tpl->tpl_vars['post_user']->value['headimgurl'];?>
';
	console.log(share_pic)
	var desc_str = <?php if ($_smarty_tpl->tpl_vars['share_desc']->value){?>'<?php echo quotemeta($_smarty_tpl->tpl_vars['share_desc']->value);?>
'<?php }else{ ?>'帖子分享'<?php }?>;
	var share_desc = desc_str.substr(0,30);
	var share_url = document.location.href;
</script>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/lazy-load-img.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/front/iscroll.js"></script>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/praise_comment_load.js"></script>	
<?php }else{ ?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/normal_comment_load.js"></script>	
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/cf_detail.js"></script>
<script>
	var one_support_money = parseFloat('<?php echo $_smarty_tpl->tpl_vars['cf']->value['one_support'];?>
');
</script>
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/praise_detail.js"></script>
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/reward_detail.js"></script>
<?php }?>

<script>


	$(function(){

		//评论
		function commitComment(data){
			var data = JSON.parse(data);  
			// alert(data);
			$('.comment_list').append(html);
		}
		//举报
		$('.jubao_box_row').on('click',function(){
			$(this).addClass('active').siblings().removeClass('active');
		})
		$('.jb_btn_close').on('click',function(){
			$('.jubao_box').hide();
		})
		$('.jubao').on('click',function(){
			$('.jubao_box').show();
		})
		$('.jb_tijiao').on('click',function(){
			$('.jubao_box').hide();
			setTimeout(function(){
				toast('举报成功','succ');
			},100)
		})
		//懒加载
		var lazyLoadImg = new LazyLoadImg({
	        el: document.querySelector('#load_wrapper'),
	        mode: 'default', //默认模式，将显示原图，diy模式，将自定义剪切，默认剪切居中部分
	        time: 250, // 设置一个检测时间间隔
	        complete: true, //页面内所有数据图片加载完成后，是否自己销毁程序，true默认销毁，false不销毁
	        position: { // 只要其中一个位置符合条件，都会触发加载机制
	          top: 0, // 元素距离顶部
	          right: 0, // 元素距离右边
	          bottom: 0, // 元素距离下面
	          left: 0 // 元素距离左边
	        },
	        before: function () { // 图片加载之前执行方法
	          
	        },
	        success: function (el) { // 图片加载成功执行方法
	          // el.classList.add('success');
	          myScroll.refresh();
	        },
	        error: function (el) { // 图片加载失败执行方法
	          // el.src = './images/error.png'
	        }
	    })

		<?php if ($_smarty_tpl->tpl_vars['del']->value){?>

	    //删除
	    $('#delete').on('click',function(){
	    	$('.confirm_box').show();

	    })
	    $('#confirmOk').on('click',function(){

	    	// alert('蛤蛤蛤')
	    	$.ajax({
	    		url:'/FrontChannel/del_post',
	    		type:'post',
	    		data:{post_id:post_id},
	    		success:function(r){
	    			if(r.code == 0){
	    				tan_tishi('帖子删除成功');
	    				setTimeout(function(){
	    					native_listen('back_reload');
	    				}, 1000);
	    			}else{
	    				tan_tishi(r.msg);
	    			}
	    		}
	    	})

	    	$('.confirm_box').hide();
	    })
	    $('#confirmCancel').on('click',function(){
	    	$('.confirm_box').hide();
	    })
	 
	    <?php }?>


		<?php if ($_smarty_tpl->tpl_vars['is_jd']->value){?>

		//删除
		$('#jdelete').on('click',function(){
			$('.confirm_box').show();

		})
		$('#confirmOk').on('click',function(){

			// alert('蛤蛤蛤')
			$.ajax({
				url:'/FrontChannel/del_post',
				type:'post',
				data:{post_id:post_id},
				success:function(r){
					if(r.code == 0){
						tan_tishi('帖子删除成功');
						setTimeout(function(){
							native_listen('back_reload');
						}, 1000);
					}else{
						tan_tishi(r.msg);
					}
				}
			})

			$('.confirm_box').hide();
		})
		$('#confirmCancel').on('click',function(){
			$('.confirm_box').hide();
		})

		<?php }?>



		// 百分比
		$('.p2').width($('.p2').attr("data-width")+"%")

		//点赞
		$('body').on('click','.icon_zan', function(){
			if(praiseing){
				return;
			}
			var obj = $(this);
			praiseing = true;
			var comment_id = $(this).data('comment_id');
			if($(this).hasClass('hover')){
				var type = 2;
			}else{
				var type = 1;
			}
			$.ajax({
				url:'/Front/praise',
				type:'post',
				data:{id:comment_id, praise_type:'comment', type:type},
				success:function(r){
					if(r.code == 0){
						if(type == 1){
							var zan_num = parseInt(obj.parent().find('.zan_num').html())+1;
							obj.parent().find('.zan_num').html(zan_num);
							obj.addClass('hover');
						}else{
							var zan_num = parseInt(obj.parent().find('.zan_num').html())-1
							obj.parent().find('.zan_num').html(zan_num);
							obj.removeClass('hover');
						}
					}else{

					}
					praiseing = false;
				}
			})
			
		})
		//图片正方形
		var liw = $('.imgbox li').width();
		$('.imgbox li').height(liw);

		//底部点赞和收藏
		$('.zan').on('click',function(){
			if(praiseing){
				return;
			}
			praiseing = true;
			var obj = $(this);
			praiseing = true;
			
			if($(this).hasClass('active')){
				var type = 2;
			}else{
				var type = 1;
			}
			$.ajax({
				url:'/Front/praise',
				type:'post',
				data:{id:post_id, praise_type:'post', type:type},
				success:function(r){
					if(r.code == 0){
						if(type == 1){
							obj.addClass('active');
						}else{
							obj.removeClass('active');
						}
					}else{

					}
					praiseing = false;
				}
			})
			// $(this).toggleClass('active');
		})
		$('.coll').on('click',function(){
			if(collecting){
				return;
			}
			var obj = $(this);
			if($(this).hasClass('active')){
				var type = 2;
			}else{
				var type = 1;
			}

			collecting = true;
			$.ajax({
				url:'/Front/collect',
				type:'post',
				data:{id:post_id, type:type},
				success:function(r){
					if(r.code == 0){
						tan_tishi(r.msg)
						obj.toggleClass('active');
					}
					collecting = false;
				}
			})
			
		})
		//全屏查看1
		$(function(){
			$(document).on('click', '.post_imgs img', function(event){
				event.preventDefault();
				var row = $(this).data('row');
				console.log
				var img_urls = [];
				console.log($(this).parent().parent())
				$(this).parent().find('img').each(function() {        
				    img_urls.push($(this).data("img"));
				});
				var html = '';
				for(i=0;i<img_urls.length;i++){
					html += '<div class="swiper-slide fullscreen_slide"><img src="'+img_urls[i]+'"/></div>';
				}
				$('#swiper_wrapper').empty().append(html);
				console.log(img_urls);
				$('#fullscreen').fadeIn();
				var full_swiper = new Swiper('.fullscreen',{
				    //pagination : '.full_pagination',
				});

				full_swiper.slideTo(row, 0, false);
				if(row==0){
					$("#swiper_wrapper").css({
						"transform": "translate3d(0px, 0px, 0px)"
					});
				}
				
			});
			// 关闭查看器
			$('#fullscreen').on('click', function(event) {
				event.preventDefault();
				$(this).fadeOut();
			});
		})

		//全屏查看2
		$(function(){
			$(document).on('click', '.img', function(event){
				event.preventDefault();
				var row = $(this).data('row');
				var img_urls = [];
				console.log($(this).parent().parent())
				$(this).parent().parent().find('.img').each(function() {        
				    img_urls.push($(this).data("img"));
				});
				var html = '';
				for(i=0;i<img_urls.length;i++){
					html += '<div class="swiper-slide fullscreen_slide"><img src="'+img_urls[i]+'"/></div>';
				}
				$('#swiper_wrapper').empty().append(html);
				console.log(img_urls);
				$('#fullscreen').fadeIn();
				var full_swiper = new Swiper('.fullscreen',{
				    //pagination : '.full_pagination',
				});
				full_swiper.slideTo(row, 0, false);
				if(row==0){
					$("#swiper_wrapper").css({
						"transform": "translate3d(0px, 0px, 0px)"
					});
				}
				
			});
			// 关闭查看器
			$('#fullscreen').on('click', function(event) {
				event.preventDefault();
				$(this).fadeOut();
			});
		})

		//微信和支付宝
		$(".pay").on("click",function(){

	  		$(this).find('.paymethod').addClass("on");
	  		$(this).find("input").prop("checked",true);
	  		$(this).siblings("div").children("input").attr("checked","false");
	  		$(this).siblings("div").children("span").removeClass("on");
	  		var val_payPlatform = $('.choose_pay input[name="pay_method"]:checked ').val();
	  		console.log(val_payPlatform);
  		})
		//购买-充值
		// $('.buy_btn').on('click',function(){
		// 	$('#recharge').show();
		// })

		//选择金额
  		$('.money').on('click',function(){
  			recharge_num = $(this).data('money')
  			$(this).addClass('active').siblings().removeClass('active');
  		})	
		//充值-关闭
  		$('#recharge .close_recharge').on('click',function(){
  			$('#recharge').hide();
  			buying = false;
  			// $('.zdy_money').html('').attr('data-money', '');
		   //  $('.money').removeClass('active');
		   //  $('.customize').val('').show();
		   //  $('.zdy_money').hide();
  		})
  		//充值
  		$('#chongzhi').on('click', function(){
  			recharge_num = $('.recharge_pop').find('.btn_group').find('.active').attr('data-money');
            if(recharge_num == ''){
                toast('请输入充值金额', 'fail');
                is_click = false;
                return;
            }

            if(recharge_num < 20){
                toast('最低充值为20元哦( • ̀ω•́ )✧', 'fail');
                is_click = false;
                return;
            }

  			console.log('recharge_num:'+recharge_num)
  			$('.amount').html(recharge_num+'元');
  			$('#recharge').hide();
  			$('#pay_box').show();
  		})
		//支付关闭
  		$('#pay_box .close_pay').on('click',function(){
  			$('#pay_box').hide();
  			buying = false;
  		})
  		//支付按钮
  		$('#zhifu').on('click',function(){
  			// alert('支付');
  			var payway = $('[name="pay_method"]:checked').val()
  			// recharge_num = $('.recharge_pop').find('.btn_group').find('.active').data('money');

  			console.log(payway);
  			console.log(recharge_num);

  			$.ajax({
				url:'/FrontUserCenter/payment',
				type:'post',
				data:{recharge_num:recharge_num, payway:payway},
				success:function(r){
					console.log(r);
					if(r.code == 0){
						native_listen(payway,{
						    parameter : r.parameter,
						});
					}else{
						layer.open({
			                content: '支付失败',
			                title: false,
			                btn: ['确定'],
			            });
					}
					buying = false;
				}
			})


  		})
  		//密码
  		$('#pwd_ipt').on('input',function(){

  			var len = $('#pwd_ipt').val().trim().length;
  			console.log(len);
  			for(var i=0;i<len;i++){
				$(".dot").eq(i).addClass('show');

			}
			for(var j=len;j<6;j++){
				$(".dot").eq(j).removeClass('show');
			}

			if(len===6){
				if(buying){
					return;
				}
				buying = true;
				var pwd = $(this).val();
				
				setTimeout(function(){
					$.ajax({
						url:'/FrontChannel/check_pwd',
						type:'post',
						data:{pwd:pwd},
						success:function(r){
							if(r.code == 1){
								toast(r.msg, 'fail');
								// tan_tishi(r.msg);
								$('#pwd_ipt').val('');
								$('.dot').removeClass('show');
								buying = false;
							}else{

								<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
								praise_buy(item_id);
								<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
								look(post_id);
								<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
								cf_buy(post_id);
								<?php }?>



							}
						}
					})
				},300)

			}

  		})
  		//关闭密码
  		$('.close_pwd').on('click',function(){
  			$('#pwd_box').hide();
  			$('#pwd_ipt').val('');
  			$('.dot').removeClass('show');
  		})
  		
  		$('.customize').blur(function(){
		    var price = $(this).val();
		    if(price != ''){
		        $('.zdy_money').html(price+'元');
		        $('.zdy_money').attr('data-money', price);
		        $('.money').removeClass('active');
		        $('.customize').hide();
		        $('.zdy_money').addClass('active').show();
		        recharge_num = price;
		        console.log(recharge_num)
		    }else{
		    	$('.money').eq(0).addClass('active');
		    }
		})

		$('.zdy_money').on('click', function(){
		    $(this).hide();
		    $('.customize').show().focus();
		})
  		
	})
	
	function check_npw(price){
		var npw = false;
		$.ajax({
			url:'/FrontChannel/check_npw_pay',
			data:{price:price},
			type:'post',
			async:false,
			success:function(r){
				if(parseInt(r) == 1){
					npw = true;
				}
			}
		})
		return npw;
	}


	//发评论
	console.log(post_id);
	$('.input').on('click',function(){
		native_listen('send_comment',{
			post_id:post_id,
			comment_id:0,
			name:'',
		})
		
	})
	//回复
	$('.user_comment').on('click', '.icon_pl', function(e){
		e.stopPropagation();
		var comment_id = $(this).data('comment_id');
		var nickname = $(this).data('nickname');
		console.log(comment_id)
		native_listen('send_comment',{
			post_id:post_id,
			comment_id:comment_id,
			name:nickname,
		})
	})
	$('.user_comment').on('click', '.text', function(){
		var comment_id = $(this).data('comment_id');
		var nickname = $(this).data('nickname');
		console.log(comment_id);
		native_listen('send_comment',{
			post_id:post_id,
			comment_id:comment_id,
			name:nickname,
		})
	})

</script>


</body>
</html>
 
<?php }else{ ?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="format-detection" content="telephone=no" />
	<meta name="format-detection" content="email=no" />
	<meta name="apple-mobile-web-app-title" content="盈软微分销" />
	<?php if (@ACTION_NAME=='cart'){?>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">  
	<?php }?>
	<title><?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
</title>
	<!-- <link href="__PUBLIC__/Css/front/front_css/mui.min.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet"> -->
	<link href="__PUBLIC__/Css/front/common.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
	<!-- <link href="<?php echo $_smarty_tpl->tpl_vars['tpl_path']->value;?>
/css/header_footer.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet"> -->
	<link href="__PUBLIC__/Css/front/layer.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
	<!-- <link href="__PUBLIC__/Css/front/front_css/icon_one.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet"> -->
	<link href="__PUBLIC__/Css/front/css/nav.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
	<link rel="stylesheet" style="text/css" href="__PUBLIC__/Css/front/swiper.3.1.2.min.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
">

	<!-- <link href="__PUBLIC__/Css/front/front_css/y_main.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet"> -->
	<!--<script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>-->
    <!--设置rem-->
	<script type="text/javascript">
//!(function(doc, win) {
//  var docEle = doc.documentElement,
//      evt = "onorientationchange" in window ? "orientationchange" : "resize",
//      fn = function() {
//          var width = docEle.clientWidth;
//          width && (docEle.style.fontSize = 20 * (width / 375) + "px");
//      };
//  win.addEventListener(evt, fn, false);
//  doc.addEventListener("DOMContentLoaded", fn, false);
//}(document, window));
	</script>
	<script src="__JS__/jquery/jquery-1.9.1.min.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/front/front_css/refresh_load.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"/>
<link rel="stylesheet" type="text/css" href="/Public/Css/front/front_css/recharge_pay_pop.css">

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
<link href="__PUBLIC__/Css/front/css/zanshang_detail.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
<link href="__PUBLIC__/Css/front/css/xuanshang_detail.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/Css/front/css/xuanshang_lz.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
<link href="__PUBLIC__/Css/front/css/zhonchou_detail.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/Css/front/css/louzhu.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }else{ ?>
<link href="__PUBLIC__/Css/front/css/common_tiezi.css?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
" type="text/css" rel="stylesheet">
<?php }?>
<style type="text/css">

/*全屏查看器样式*/
.fullscreen{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 10000;
	background-color: #000;
	display: none;
}
.fullscreen .fullscreen_slide{
	background-color: #000;
}
/*密码框*/
#pwd_box{
	width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    position: fixed;
    display: block;
    top: 0;
    z-index: 1001;
	display: none;
}
#pwd_box .pop_back{
	width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    position: fixed;
    display: block;
    top: 0;
    z-index: 1001;
}
#pwd_box .pwd_pop{
	width: 100%;
    height: 10rem;
    position: absolute;
    bottom: 0;
    z-index: 1001;
    background-color: #fff;
}
.pwd_detail{
	width: 100%;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 0.9rem;
    color: #323232;
    text-align: center;
    border-bottom: 0.05rem solid #E1E1E1;;
}
.close_pwd {
    background-image: url(/Public/Images/front/front_img/icon_sign_close.png);
    width: 1.1rem;
    height: 1.1rem;
    background-size: 1.1rem 1.1rem;
    position: absolute;
    top: 0.7rem;
    left: 3.2%;
}
.input_box{
	width: 17.1rem;
	margin:.75rem auto;
	position: relative;
	height: 2.3rem;
}

.dot{
	width: 2.875rem;
    height: 2.3rem;
    border: 0.05rem solid #efefef;
    position: absolute;
    top:0;
    left: 0;
    background-color: #fff;
    box-sizing: border-box;
    border-right: 0;
}
.dot::after{
	content: "";
	width: 0.4rem;
    height: .4rem;
    border-radius: 50%;
    display: block;
    background-color: #000;
    position: absolute;
    top:0;
    right: 0;
    bottom: 0;
    left:0;
    margin: auto;
    display: none;
}
.dot.show::after{
	display: block;
}
.dot_1{
	left:0;
}
.dot_2{
	left: 2.875rem;
}
.dot_3{
	left: 5.75rem;
}	
.dot_4{
	left:8.625rem;
}
.dot_5{
	left: 11.5rem;
}
.dot_6{
	left:14.375rem;
	border-right: 1px solid #efefef;
}
.input_box input{
	width: 150%;
	height: 2.3rem;
	position: absolute;
	left: 0;
	top:0;
	background: transparent;
	z-index: 10;
	color: transparent;
	text-indent: -999px;
	margin-left: -50%;
	line-height: 0;
}
.forget_pwd{
	width: 17.1rem;
	margin: auto;
	font-size: .65rem;
	line-height: .9rem;
	color: #4A90E2;
	text-align: right;
}
.forget_pwd a{
	color: #4A90E2;
}

.user_comment .at{
	color:#3385ff;
}

/*删除提示框*/
.confirm_box{
	background: rgba(0,0,0,.4);
	font-size: 15px!important;
    z-index: 9999;
    text-align: center;
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.confirm_box>div {
    overflow: hidden;
    position: absolute;
    left: 13.5%;
    top: 50%;
    width: 73%;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.confirm_box>div>h1 {
    font-size: 15px!important;
    font-style: normal;
    padding: 15px 10px 10px;
    color: #333;
}
.confirm_box> div > a {
    font-size: 16px !important;
    display: block;
    line-height: 40px;
    color: #007AFF;
    text-decoration: none;
    border-top: 1px solid #DBDCDC;
}
.confirm_box i{
	font-style: normal;
    float: left;
    width: 50%;
}
.confirm_box i:first-child {
    margin-right: -1px;
    border-right: 1px solid #DBDCDC;
}

.jubao{
	color:#696969;
	font-size: .7rem;
	position: absolute;
	right: 0;
	top:0;
	z-index: 10;
}
.jubao_box{
	display: none;
}
.jubao_box .mask{
	position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.jubao_box .jubao_box_content{
	position: fixed;
    z-index: 5000;
    width: 16.25rem;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #FFFFFF;
	background: #FFFFFF;
	border-radius: 8px;
}
.jubao_box .jubao_box_content_hd h4{
	font-size: 0.8rem;
	line-height: 1.1rem;
	padding: 0.55rem 0;
	color: #323232;
	letter-spacing: -0.39px;
	background: #EFEFF4;
	border-radius: 8px 8px 0 0;
	text-align: center;
}
.jubao_box .jubao_box_content_bd{
	padding: 0 0.75rem;
	border-bottom: 1px solid #EFEFEF;
}
.jubao_box_row{
	font-size: 0.8rem;
	color: #323232;
	letter-spacing: 0;
	padding: 0.5rem 0;
	border-bottom: 1px solid #EFEFEF;
}
.jubao_box_row:last-child{
	border-bottom: none;
}
.jubao_box_row span{
	float: left;
}
.jubao_box_content_ft{
	padding:  1rem 0;
}

.jb_tijiao{
	background:#696969;
	border-radius: 4px;
	width: 12.5rem;
	color: #fff;
	margin:auto;
	display:block;
	line-height: 1rem;
	font-size: 0.9rem;
	padding:  0.5rem 0;
	text-align: center;
}
.jb_btn_close{
	width: 1.5rem;
	height: 3.5rem;
	background: url(/Public/Images/img/icon_guanbi2@3x.png) no-repeat;
	background-size: 100% 100%;
	display: block;
	position: absolute;
	top:-3.5rem;
	right: 0;
}

.jubao_box_row .icon_nochoose{
	width: .85rem;
    height: .85rem;
    background: url(/Public/Images/img/icon_no_choose@3x.png) no-repeat;
    background-size: 100% 100%;
    float: right;
    margin-top: .125rem;
}
.jubao_box_row.active .icon_nochoose {
    background: url(/Public/Images/img/choose@3x.png) no-repeat;
    background-size: 100% 100%;
}


</style>

	<style type="text/css">
		.layermcont{
			text-align: center;
		}
		.layermchild .layermbtn span{
			color: #2485e8;
		}
	


	/*弹窗*/
	#toast{
		display: none;
	}
	.toast-mask_transparent {
	    position: fixed;
	    z-index: 1000;
	    top: 0;
	    right: 0;
	    left: 0;
	    bottom: 0;
	}
	.toast {
	    position: fixed;
	    z-index: 5000;
	    width: 5.7rem;
	    top: 50%;
	    left: 50%;
	    transform: translate(-50%, -50%);
	    background: rgba(0, 0, 0, 0.8);
	    text-align: center;
	    border-radius: 0.5rem;
	    color: #FFFFFF;
	}
	.icon_toast{
		width: 2.2rem;
		height: 2.2rem;
		
		display: block;
		margin: 1.0rem auto;
	}
	.toast .succ{
		background: url(/Public/Images/img/icon_succes_tanchuang@3x.png) no-repeat;
		background-size: 100% 100%;
		
	}
	.toast .fail{
		background: url(/Public/Images/img/icon-cuowu@3x.png) no-repeat;
		background-size: 100% 100%;
	}
	.toast_content {
	    margin: 0 0 0.75rem;
	    font-size: 0.8rem;
	    line-height: 1.1rem;
		color: #FFFFFF;
		letter-spacing: 0;
		padding:0 1em;
	}

	#loading{
		display: none;
	}
	.loading-mask_transparent {
	    position: fixed;
	    z-index: 1000;
	    top: 0;
	    right: 0;
	    left: 0;
	    bottom: 0;
	}
	.loading_cont{
	    position: fixed;
	    z-index: 5000;
	    width: 5.7rem;
	    top: 50%;
	    left: 50%;
	    transform: translate(-50%, -50%);
	    background: rgba(0, 0, 0, 0.8);
	    text-align: center;
	    border-radius: 0.5rem;
	    color: #FFFFFF;
	}
	.icon_loading{
		width: 2.2rem;
		height: 2.2rem;
		background: url(/Public/Images/img/loading-1.png) no-repeat;
		background-size: 100% 100%;
		display: block;
		margin: 1.0rem auto;
	}
	.loading_content {
	    margin: 0 0 0.75rem;
	    font-size: 0.8rem;
	    line-height: 1.1rem;
		color: #FFFFFF;
		letter-spacing: 0;
	}

	/*返回刷新*/

	.back_reload{
	    padding: 0.6rem;
	    position: absolute;
	    left: 0;
	    top: 0;
	    z-index: 100;
	}
	.back_reload .icon_back{
		background: url(/Public/Images/img/icon_return_head.png) no-repeat;
	    background-size: 100% 100%;
	    width: 0.55rem;
	    height: 1.0rem;
	    display: block
	}

		/*新建弹窗样式*/
		.toast1 {
			width: 80%;
			height: 60%;
			background: rgb(216,88,63);
		}

		/*领取头衔样式*/
		.get_title_css {
			width: 90%;
			height: 60%;
			/*background: #fedfe1;*/
		}

		.subtitle {
			font-size: 0.8rem;
			/*border-top: 0.05rem solid #ffffff;*/
			padding-top: 10%;
			color: #ffffff;
		}

		.cs_list {
			width: 100%;
			position: absolute;
			top: 4.25rem;
		}
		.Cs {
			width: 100%;
			height: 4.4rem;
			/*background-color: #ffffff;*/
			/*border-top: 0.05rem solid #fedfe1;*/
			position: relative;
		}
		.cs_head {
			width: 3.5rem;
			height: 3.5rem;
			border-radius: 0.2rem;
			display: inline-block;
			position: absolute;
			top: 0.4rem;
			left: 4.8%;
		}
		.cs_name {
			height: 1.1rem;
			line-height: 1.1rem;
			color: #ffffff;
			font-size: 0.8rem;
			position: absolute;
			top: 0.75rem;
			left: 27.2%;
		}
		.cs_conn {
			height: 1.1rem;
			line-height: 1.1rem;
			color: #ffffff;
			font-size: 0.8rem;
			position: absolute;
			top: 2.5rem;
			left: 27.2%;
		}
		.copy {
			width: 4.2rem;
			height: 1.5rem;
			line-height: 1.5rem;
			background-color: rgb(216,88,63);
			border-radius: 0.2rem;
			position: absolute;
			top: 1.4rem;
			right: 3.2%;
			color: #fff;
			font-size: 0.8rem;
			text-align: center;
		}

	</style>
</head>
<body>
	

	
<div class="com_header">
	<a href="javascript:;" class="go_back"><i class="icon_back"></i></a><?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
<a class="louzhu native_go <?php if ($_smarty_tpl->tpl_vars['see_lz']->value){?>active<?php }?>"  href='/FrontChannel/post_detail/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
<?php if (!$_smarty_tpl->tpl_vars['see_lz']->value){?>/see_lz/1<?php }?>'>
只看楼主</a>
</div>


<div id="load_wrapper" style="margin-top: 2.2rem;margin-bottom: 2.5rem">
	<div id="scroller">
		<div id="pullDown">
		    <span class="pullDownIcon"></span>
		</div>

	<div class="user_header clearfix" >
		 <a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['user_id'];?>
" class="avatar native_go">
		 	<img data-src="<?php echo $_smarty_tpl->tpl_vars['post_user']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" src="/Public/Images/img/no-img.png" alt="">
		 </a>
		 <div class="user_main clearfix">
		 	<a class="nickname native_go" data-url="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['post_user']->value['nickname'];?>
</a>
		 	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['title_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
		 	<i class="tag" style="background-color:<?php echo $_smarty_tpl->tpl_vars['v']->value['title_color'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['title_name'];?>
</i>
		 	<?php } ?>
		 </div>
		 <p style="position: relative;"><?php echo $_smarty_tpl->tpl_vars['post']->value['addtime'];?>
<span class="type"><?php echo $_smarty_tpl->tpl_vars['channel']->value['channel_name'];?>
</span>
			<span class="jubao">举报</span>
		 </p>
		 	
		 	 <?php if ($_smarty_tpl->tpl_vars['del']->value){?>
			 <!-- 删除 -->
			 <p class="delete" id="delete" style="color: #2C77A5;line-height: 1rem;font-size: .7rem;margin-top: .6rem;">删除本贴</p>
			 <?php }?>

		 <?php if ($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
		 	<?php if ($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::SUCCESS){?>
			 <!-- 成功 -->
			 <div class="zhonchou_succ"></div>
			<?php }elseif($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::FAILURE){?>
			 <!-- 失败 -->
			 <div class="zhonchou_fail"></div>
			 <?php }?>
		 <?php }?>
	</div>

	<div class="post_content">
		<h2><?php echo $_smarty_tpl->tpl_vars['post']->value['title'];?>
</h2>
		<p><?php echo $_smarty_tpl->tpl_vars['post']->value['content'];?>
</p>
		<div class="post_imgs">
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['post_imgs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
			<img data-src="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" alt="" data-row="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" alt="" src="/Public/Images/img/no-img.png">
			<?php } ?>
		</div>
		
		<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'&&$_smarty_tpl->tpl_vars['see_hide']->value){?>
		<!-- 隐藏内容 -->
		<div class="hide_content" >
			<p>
				<?php echo $_smarty_tpl->tpl_vars['praise_hide']->value['content'];?>

			</p>
			<div class="post_imgs">
				<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['praise_hide']->value['hide_imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
				<img  src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" alt="" data-row="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/thumbnail/800x/imageslim" src="/Public/Images/img/no-img.png">
				<?php } ?>
			</div>		
		</div>
		<?php }?>

	</div>

	<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
		<?php /*  Call merged included template "./praise_detail_content.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./praise_detail_content.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c3604800032($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./praise_detail_content.html" */?>
	<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
		<?php /*  Call merged included template "./reward_detail_content.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./reward_detail_content.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c3604812ba5($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./reward_detail_content.html" */?>
	<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
		<?php /*  Call merged included template "./crowdfunding_detail_content.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./crowdfunding_detail_content.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c360483f5b6($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./crowdfunding_detail_content.html" */?>
	<?php }?>
	

	<!-- 用户评论 -->
	<div class="user_comment">
		<h5 class="comment_title">用户评论（<?php echo $_smarty_tpl->tpl_vars['post']->value['comment_num'];?>
）</h5>
		<div class="comment_list" id='comment_list'>
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['comment_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
			<div class="comment_item">
				<div class="comment_top">
					<a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['v']->value['user_id'];?>
" class="avatar native_go">
						<img data-src="<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" alt="" src="/Public/Images/img/no-img.png">
						<?php if ($_smarty_tpl->tpl_vars['v']->value['is_lz']){?><span class="lz_tag">楼主</span><?php }?>
					</a>
					<div class="comment_user">
						<div class="user_info"><a class="nickname native_go" href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['v']->value['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['nickname'];?>
</a>
							<?php  $_smarty_tpl->tpl_vars['title'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['title']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['v']->value['title_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['title']->key => $_smarty_tpl->tpl_vars['title']->value){
$_smarty_tpl->tpl_vars['title']->_loop = true;
?>
							<i class="tag" style="background-color:<?php echo $_smarty_tpl->tpl_vars['title']->value['title_color'];?>
"><?php echo $_smarty_tpl->tpl_vars['title']->value['title_name'];?>
</i>
							<?php } ?>
						</div>
						<div class="other clearfix">
							<span class="floor"><?php echo $_smarty_tpl->tpl_vars['v']->value['floor'];?>
楼</span>
							<span class="time"><?php echo $_smarty_tpl->tpl_vars['v']->value['addtime'];?>
</span>
							<span class="zan_num"><?php echo $_smarty_tpl->tpl_vars['v']->value['praise_num'];?>
</span>
							<i class="icon_zan <?php if ($_smarty_tpl->tpl_vars['v']->value['is_praise']){?>hover<?php }?>" data-comment_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['post_comment_id'];?>
"></i>
							<i class="icon_pl" data-comment_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['post_comment_id'];?>
" data-nickname="<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['nickname'];?>
"></i>
						</div>
						<div class="text" data-comment_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['post_comment_id'];?>
" data-nickname="<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_user']['nickname'];?>
">
							<?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>

						</div>
						<ul class="imgbox clearfix">
							<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['v']->value['imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
							<li><img src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageView2/1/w/200/h/200/imageslim" alt="" class="img" data-row="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/imageslim"></li>
							<?php } ?>
						</ul>
						
						<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
							<?php /*  Call merged included template "./praise_comment_hide.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate("./praise_comment_hide.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c3604869aea($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./praise_comment_hide.html" */?>
						<?php }?>
					</div>
				</div>
				<?php if ($_smarty_tpl->tpl_vars['v']->value['reply_comment_list']){?>
				<div class="comment_cont">
					<ul>
						<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['v']->value['reply_comment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
						<li><span class="nick"><?php echo $_smarty_tpl->tpl_vars['item']->value['nickname'];?>
：</span><?php echo $_smarty_tpl->tpl_vars['item']->value['content'];?>
</li>
						<?php } ?>
					</ul>
				</div>
				<?php }?>
			</div>
			<?php } ?>
		</div>
	</div>

		<div id="pullUp">
			<!-- <span class="pullUpIcon"> --></span><span class="pullUpLabel">上拉加载...</span>
		</div>
	</div>
</div>




<!-- 全屏图片查看器-->
<div class="swiper-container fullscreen" id="fullscreen">
	<div class="swiper-wrapper" id="swiper_wrapper">
	</div>
</div>
<!-- 普通底部 -->
<div class="fixed_footer">
	<div class="input">
		一起来补魔吧(●ˇ∀ˇ●)
	</div>
	<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'&&$_smarty_tpl->tpl_vars['is_lz']->value){?>
	<!-- 有楼主回帖按钮 -->
	<a class="huitie native_go" href="/FrontChannel/praise_lz_ht/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
">回帖</a>
	<?php }?>
	<i class="zan <?php if ($_smarty_tpl->tpl_vars['post_is_praise']->value){?>active<?php }?>"></i>
	<i class="coll <?php if ($_smarty_tpl->tpl_vars['is_collect']->value){?>active<?php }?>"></i>
	<i class="share" onclick="return_share();"></i>
</div>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
	<?php /*  Call merged included template "./support_list.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./support_list.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c360487b78a($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./support_list.html" */?>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
	<?php /*  Call merged included template "./reward_refund.html" */
$_tpl_stack[] = $_smarty_tpl;
 $_smarty_tpl = $_smarty_tpl->setupInlineSubTemplate('./reward_refund.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0, '2956459c09b6b8d1403-06296206');
content_59c36048872b4($_smarty_tpl);
$_smarty_tpl = array_pop($_tpl_stack); /*  End of included template "./reward_refund.html" */?>
<?php }?>


<!--支付弹窗-->
<div id="pay_box" style="display: none;">
	<div class="pop_back"></div>
	<div class="pay_pop">
		<div class="recharge_detail">
			<span class="close_pay"></span>
			充值详情
		</div>

		<div class="recharge_amount">
			充值金额
			<span class="amount">0元</span>
		</div>
		<div class="interval"></div>
		<div class="choose_pay">
			<div class="title">选择支付方式</div>
			<div class="pay" data-pay_way="alipay">
				<i class="icon_pay zhifubao"></i>
				<p>支付宝支付</p>
				<span class="paymethod on"><input type="radio"   name="pay_method" value="alipay" class="radioclass" checked></span>
			</div>
			<div class="pay" data-pay_way="wx_pay">
				<i class="icon_pay weixin"></i>
				<p>微信支付</p>
				<span class="paymethod"><input type="radio"  name="pay_method" value="wx_pay" class="radioclass"></span>
			</div>
		</div>
		<input type="submit" class="confirm" value="支付" id="zhifu">
	</div>	
</div>
<!--充值弹窗-->
<div id="recharge" style="display: none;">
	<div class="pop_back"></div>
	<div class="recharge_pop">
		<div class="recharge_detail">
			<span class="close_recharge"></span>
			余额不足，需先充值
		</div>
		<div class="choose_amount">
			<p>请选择充值金额</p>
			<div class="btn_group">
				<span class="btn money" data-money="20">20元</span>
				<span class="btn active money" data-money="50">50元</span>
				<span class="btn money" data-money="100">100元</span>
				<span class="btn money" data-money="200">200元</span>
				<span class="btn money" data-money="500">500元</span>
				<span class="btn money" data-money="1000">1000元</span>
				<span class="btn money" data-money="2000">2000元</span>
				<span class="btn money zdy_money" data-money="" style="display: none"></span>
				<input type="number" placeholder="自定义" onfocus="this.placeholder='';$('.money').removeClass('active');" onblur="this.placeholder='自定义'" class="btn customize">
			</div>
		</div>
		<div class="balance">钱包余额<span style="color:#ff6600">0元</span></div>
		<input type="submit" class="confirm" style="top:0.7rem" value="充值" id="chongzhi">
	</div>
</div>
<!-- 密码 -->
<div id="pwd_box">
	<!-- <div class="pop_back"></div> -->
	<div class="pwd_pop">
		<div class="pwd_detail">
			<span class="close_pwd"></span>
			输入支付密码
		</div>
		<div class="input_box">
			<input type="tel" maxlength="6" id="pwd_ipt">
				<span class="dot dot_1"></span> 
				<span class="dot dot_2"></span> 
				<span class="dot dot_3"></span> 
				<span class="dot dot_4"></span> 
				<span class="dot dot_5"></span> 
				<span class="dot dot_6"></span> 
		</div>
		<p class="forget_pwd native_go"><a href="/FrontUserCenter/forget_pay_psw">忘记密码&nbsp;</a></p>
	</div>
</div>

<?php if ($_smarty_tpl->tpl_vars['del']->value||$_smarty_tpl->tpl_vars['is_jd']->value){?>
<!-- 删除提示 -->
<div class="confirm_box" style="display: none;">
	<div>
		<h1>你确定要删除吗？</h1>
		<!-- <p>提示内容</p> -->
		<a><i id="confirmOk">确定</i><i id="confirmCancel">取消</i></a>
	</div>
</div>
<?php }?>

<!-- 举报 -->
<div class="jubao_box">
	<div class="mask"></div>
	<div class="jubao_box_content">
		<div class="jubao_box_content_hd">
			<h4>选择举报原因</h4>
		</div>
		<div class="jubao_box_content_bd">
			<div class="jubao_box_row clearfix">
				<span>广告</span><i class="icon_nochoose"></i>
			</div>
			<div class="jubao_box_row clearfix">
				<span>色情</span><i class="icon_nochoose"></i>
			</div>
			<div class="jubao_box_row clearfix">
				<span>其他</span><i class="icon_nochoose"></i>
			</div>
		</div>
		<div class="jubao_box_content_ft">
			<a href="javascript:;" class="jb_tijiao">提交</a>
		</div>
		<!-- 关闭 -->
		<div class="jb_btn_close"></div>
	</div>
</div>

	<?php if (@ACTION_NAME=='mall_home'||@ACTION_NAME=='all_order'||@ACTION_NAME=='pre_pay_order'||@ACTION_NAME=='pre_deliver_order'||@ACTION_NAME=='pre_confirm_order'||@ACTION_NAME=='wallet'||@ACTION_NAME=='personal_center'||@ACTION_NAME=='mall_list'||@ACTION_NAME=='item_list'){?>
	<?php echo $_smarty_tpl->getSubTemplate (($_smarty_tpl->tpl_vars['footer_path']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	<?php }?>
	<!--提示层-->
    <div id="tan_wrap"><div id="tan"></div></div>

    <!-- 通用弹窗 -->
	<div id="toast" style="display:none;">
        <div class="toast-mask_transparent"></div>
        <div class="toast">
            <i class="icon_toast"></i>
            <p class="toast_content"></p>
        </div>
    </div>

	<!-- 通用弹窗1 -->
	<div id="toast1" style="display:none;">
		<div class="toast-mask_transparent"></div>
		<div class="toast toast1">
			<div class="toast_close" style="float: right; padding: 5px 10px 0 0;">X</div>
			<i class="icon_toast">hello</i>
			<p class="toast_content">sama用户们好~~</p>
		</div>
	</div>

	<!-- 领取头衔弹窗 -->
	<div id="get_title" style="display:none;">
		<div class="toast-mask_transparent"></div>
		<div class="toast get_title_css">
			<div class="toast_close" style="float: right; padding: 5px 10px 0 0;">X</div>
			<ul class="cs_list">
				<?php if ($_smarty_tpl->tpl_vars['kf_info']->value['wx']){?>
				<li class="Cs">
					<img class="cs_head" src="<?php echo $_smarty_tpl->tpl_vars['kf_info']->value['head_img'];?>
">
					<span class="cs_name">sama小助手</span>
					<span class="cs_conn">微信号:<span style="color: #ffffff" class="kf_num"><?php echo $_smarty_tpl->tpl_vars['kf_info']->value['wx'];?>
</span></span>
					<span class="copy">点击复制</span>
				</li>
				<?php }?>

				<?php if ($_smarty_tpl->tpl_vars['kf_info']->value['qq']){?>
				<li class="Cs">
					<img class="cs_head" src="<?php echo $_smarty_tpl->tpl_vars['kf_info']->value['head_img'];?>
">
					<span class="cs_name">sama新闻组</span>
					<span class="cs_conn">QQ群号:<span style="color: #ffffff;" class="kf_num"><?php echo $_smarty_tpl->tpl_vars['kf_info']->value['qq'];?>
</span></span>
					<span class="copy">点击复制</span>
				</li>
				<?php }?>
				<div class="subtitle">(｀・ω・´)想要更多特殊头衔<br>需要添加Sama小助手的QQ或者微信申请哦</div>
			</ul>
		</div>
	</div>
	<!-- loading -->
   <div id="loading">
        <div class="loading-mask_transparent"></div>
        <div class="loading_cont">
            <i class="icon_loading"></i>
            <p class="loading_content">支付中</p>
        </div>
    </div>
	<script>
	var is_read = <?php if ($_smarty_tpl->tpl_vars['is_read']->value){?>true<?php }else{ ?>false<?php }?>;
	var has_deflt_addr = "<?php echo $_smarty_tpl->tpl_vars['has_deflt_addr']->value;?>
";
	var default_addr = "<?php echo $_smarty_tpl->tpl_vars['default_addr_string']->value;?>
";
	var first = "<?php echo $_smarty_tpl->tpl_vars['first']->value;?>
";	
    function no_pic(obj) {
         obj.setAttribute("src", "/Public/Images/noimg.png");
     }
     
	</script>
	
	<script src="__JS__/front/custom.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__JS__/front/layer.m.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__PUBLIC__/Js/front/swiper.3.1.2.jquery.min.js"></script>
	<script src="__PLG__/native/native_event.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>
	<script src="__JS__/clipboard.min.js"></script>
	<!--<script src="__JS__/front/mui.min.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script>-->
	<script>
		// 弹窗js
		function toast(msg,cls){
			var $toast = $('#toast');
			$toast.find('.toast_content').html(msg);
			$toast.find('.icon_toast').removeClass('succ');
			$toast.find('.icon_toast').removeClass('fail');
			$toast.find('.icon_toast').addClass(cls);

    	 	if ($toast.css('display') != 'none') return;
        	$toast.fadeIn(300);
            setTimeout(function () {
                $toast.fadeOut(300);
            }, 2000);
		}
		// 提示
		function tan_tishi(msg){
			$('#tan').html(msg)
			tishi();
		}
		//安卓行高问题
		if(!is_ios()){
			$('.tag').css('padding-top','1px');
		}
	</script>
	<script>
	//获取后台数据
	ip = "<?php echo $_smarty_tpl->tpl_vars['client_ip']->value;?>
";
	az_id = 1;
	user_id = '<?php echo $_smarty_tpl->tpl_vars['user_id']->value;?>
';
	var npw_pay = parseInt('<?php echo $_smarty_tpl->tpl_vars['npw_pay']->value;?>
');
	var isios = parseInt('<?php echo $_smarty_tpl->tpl_vars['isios']->value;?>
');
	</script>
	<script>
		var user_id = '<?php echo $_smarty_tpl->tpl_vars['user_id']->value;?>
';
		//分享信息
		var link = '<?php echo $_smarty_tpl->tpl_vars['wx_share_link']->value;?>
';
		var img = '<?php echo $_smarty_tpl->tpl_vars['share_info']->value['pic'];?>
';
		var title = '<?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
';
		var desc = '<?php echo $_smarty_tpl->tpl_vars['head_title']->value;?>
';
		var appId = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['appId'];?>
';
		var timestamp = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['timestamp'];?>
';
		var nonceStr = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['nonceStr'];?>
';
		var signature = '<?php echo $_smarty_tpl->tpl_vars['signPackage']->value['signature'];?>
';
//alert('title = ' + title + ', desc = ' + desc + ', link = ' + link + ', img = ' + img);
	</script>
	<?php if (@ACTION_NAME!='mall_home'&&@ACTION_NAME!='item_list'&&@ACTION_NAME!='item_detail'){?>
	<script type="text/javascript">
		//用户是否登录
		$(function(){
			if(user_id == null || user_id == 0 || user_id == '' || user_id == '0'){
				console.log('没登录');
				console.log('no_login');
				// native_listen('no_login');
			}
		})

        //点击复制
        $('.copy').on('click',function(){
            var kf_num = $(this).siblings('span').find('.kf_num').text();
            console.log(kf_num);
            native_listen('copy_kf_num',{
                kf_num:kf_num
            })
        });


	</script>
	<?php }?>
	<script type="text/javascript">
	
	
		
		//链接
		$("body").on("click",".native_go",function(){
	
			<?php if (@ACTION_NAME=='post_list'){?>
	
			if($(this).find('.post').length > 0){
				var check_post = false;
				$.ajax({
					url:'/Front/check_post',
					type:'post',
					data:{channel_id:channel_id},
					async:false,
					success:function(r){
						if(r.code == 1){
							check_post = true;
						}else{
							tan_tishi(r.msg)
						}
					}
				})
				if(check_post === false){
					// tan_tishi('请先关注频道');
					return false;
				}
			}
	
			<?php }?>
	
			if (!is_wechat()) {
				
					var href = $(this).attr("href");

					if(href){
						var is_tel = href.indexOf("tel");
					}
					var load_label = $(this).data('label');
					if(href=="javascript:;"){
						//$(this).attr("data-url");
					}
					else if(is_tel > -1)
					{
						//null
					}
					else
					{	
						$(this).attr("href","javascript:;");
						$(this).attr("data-url",href);
					}

					var dataUrl = $(this).attr("data-url");
					console.log(dataUrl);
					
					var is_login = false;
					// $.ajax({
					// 	url:'/Front/check_login',
					// 	async:false,
					// 	success:function(r){
					// 		if(r == 1){
					// 			is_login = true;
					// 		}
					// 	}
					// })
					is_login = check_login();
					if(is_login === false){
						native_listen('no_login');
						return false;
					}

					// console.log(load_label);
					if(load_label == 'download')
					{
						var _json = JSON.stringify({
				            event: "download",
				            params: {"url":dataUrl}
				        });
					}
					else
					{
						var _json = JSON.stringify({
				            event: "to_jump",
				            params: {"url":dataUrl}
				        });
					}
					
			        //电话链接判断
			        if(is_tel > -1){
			        	//null
			        }else{
			        	if(is_ios()){

							window.webkit.messageHandlers.webviewEvent.postMessage(_json);
						}else{
							window.ResultAndroid.webviewEvent(_json);
						}
			        }
					
		  }	
		});

		//返回
		$('.go_back').on('click', function(){
				console.log(1)
				if(!is_wechat()){
					native_listen('back');
				}else{
					history.go(-1);
				}
		})

		//返回刷新
		$('.back_reload').on('click', function(){
			console.log(1)
			if(!is_wechat()){
				native_listen('back_reload');
			}else{
				history.go(-1);
			}
		})
		// 分享功能
		function return_share()
		{
			if (!is_wechat()) {
				native_listen('share_item',{
					item_name:share_title,
					item_desc:share_desc,
					basc_pic:share_pic,
					share_url:share_url,
				})
			}
		}
		
		function check_login(){
			var is_login = false;
			$.ajax({
				url:'/Front/check_login',
				async:false,
				success:function(r){
					if(r == 1){
						is_login = true;
					}
				}
			})

			return is_login;
		}


		function set_msg_dot(sx_num, reply_num, at_num ,sys_num){

			if($('.com_header').length > 0){
				var dot_len = $('.com_header').find('.dot').length;
				if(reply_num > 0 || at_num > 0 || sx_num > 0 || sys_num > 0){
					if(dot_len == 0){
						$('.com_header').find('.msg').append('<span class="dot"></span>')
					}
				}else{
					$('.com_header').find('.dot').remove();
				}
				
			}else if($('.title').length > 0){
				
				var dot_len = $('.icon_info').find('.point').length;
				if(reply_num > 0 || at_num > 0 || sx_num > 0 || sys_num > 0){
					if(dot_len == 0){
						$('.title').find('.icon_info').append('<div class="point"></div>')
					}
				}else{
					$('.title').find('.point').remove();
				}
				
			}else if($('.title_headbox').length > 0){
				var dot_len = $('.others_info_icon').find('.point').length;
				if(reply_num > 0 || at_num > 0 || sx_num > 0 || sys_num > 0){
					if(dot_len == 0){
						$('.title_headbox').find('.others_info_icon').append('<div class="point"></div>')
					}
				}else{
					$('.title_headbox').find('.point').remove();
				}
			}else if($('.others_personal_head_box').length > 0){
				var dot_len = $('.others_personal_head_box').find('.point').length;
				if(reply_num > 0 || at_num > 0 || sx_num > 0 || sys_num > 0){
					if(dot_len == 0){
						$('.others_personal_head_box').find('.others_info_icon').append('<div class="point"></div>')
					}
				}else{
					$('.others_personal_head_box').find('.point').remove();
				}
			}

		}

		function have_sx(num){
			var sx_num = parseInt(num);
			
			if(sx_num > 0 ){
				
				if($('.sx').length > 0){
					if(sx_num > 99){
						sx_val = '99+';
					}else{
						sx_val = sx_num.toString();
					}

					if($('.sx').find('.num').length > 0){
						$('.sx').find('.num').html(sx_val)
					}else{
						$('.sx').find('.txt').after('<strong class="num" data-sx_num="'+sx_num+'">'+sx_val+'</strong>');
					}

				}
				
			}else{
				$('.sx').find('.num').remove()
			}

			var reply_num = 0;
			var at_num = 0;
			var sys_num = 0;
			$.ajax({
				url:'/Front/get_no_read',
				type:'post',
				async:false,
				success:function(r){
					reply_num = parseInt(r.reply_num);
					at_num = parseInt(r.at_num);
					sys_num = parseInt(r.sys_num);
					if(reply_num == 0 && at_num == 0 && sys_num == 0){
						is_read = false;
					}else{
						is_read = true;
					}
				}
			})

			if(reply_num > 0 ){
				
				if($('.reply').length > 0){
					if(reply_num > 99){
						reply_val = '99+';
					}else{
						reply_val = reply_num.toString();
					}

					if($('.reply').find('.num').length > 0){
						$('.reply').find('.num').html(reply_val)
					}else{
						$('.reply').find('.txt').after('<strong class="num" data-sx_num="'+reply_num+'">'+reply_val+'</strong>');
					}

				}
				
			}else{
				$('.reply').find('.num').remove()
			}

			if(at_num > 0 ){
				
				if($('.at').length > 0){
					if(at_num > 99){
						at_val = '99+';
					}else{
						at_val = at_num.toString();
					}

					if($('.at').find('.num').length > 0){
						$('.at').find('.num').html(at_val)
					}else{
						$('.at').find('.txt').after('<strong class="num" data-sx_num="'+at_num+'">'+at_val+'</strong>');
					}

				}
				
			}else{
				$('.at').find('.num').remove()
			}

			if(sys_num > 0 ){
				
				if($('.sys').length > 0){
					if(sys_num > 99){
						sys_val = '99+';
					}else{
						sys_val = sys_num.toString();
					}

					if($('.sys').find('.num').length > 0){
						$('.sys').find('.num').html(sys_val)
					}else{
						$('.sys').find('.txt').after('<strong class="num" data-sx_num="'+sys_num+'">'+sys_val+'</strong>');
					}

				}
				
			}else{
				$('.sys').find('.num').remove()
			}

			set_msg_dot(sx_num, reply_num, at_num, sys_num);
		}

		var scrollPos;
		// window.onbeforeunload = function () { 
		//     // var scrollPos;  
		//     // if (typeof window.pageYOffset != 'undefined') {  
		//     //     scrollPos = window.pageYOffset;  
		//     // }  
		//     // else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {  
		//     //     scrollPos = document.documentElement.scrollTop;  
		//     // }  
		//     // else if (typeof document.body != 'undefined') {  
		//     //     scrollPos = document.body.scrollTop;  
		//     // }  
		//     if(scrollPos != undefined){
		    	
		//     	document.cookie = "scrollTop=" + scrollPos; //存储滚动条位置到cookies中  	
		//     }
		    
		//     // document.cookie = "duration=" + $('#scroller').css('transition-duration');
		//     console.log(scrollPos)
		// }  
		  
		// window.onload = function () {  
		//     if (document.cookie.match(/scrollTop=([^;]+)(;|$)/) != null) {  
		//         var arr = document.cookie.match(/scrollTop=([^;]+)(;|$)/); //cookies中不为空，则读取滚动条位置  
		//         // $('#load_wrapper').scrollTop = parseInt(arr[1]);  
		//         // document.body.scrollTop = parseInt(arr[1]);  
		//      //    if(arr[1] == 'undefined'){
		// 	    // 	var yy = 0;
		// 	    // }else{
		// 	    // 	var yy = parseInt(arr[1]);  	
		// 	    // }console.log('yy='+yy)
			    
		//     }  
		// }  

	
		
	</script>
	<!--JS-->
	<!--<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>-->
	<!-- <script src="__PUBLIC__/Js/front/wxapi.js"></script> -->

    <!-- <script src="/stat.js?version=<?php echo $_smarty_tpl->tpl_vars['version']->value;?>
"></script> -->

	
<script>
	var total = parseInt('<?php echo $_smarty_tpl->tpl_vars['total']->value;?>
');
    var firstRow = parseInt('<?php echo $_smarty_tpl->tpl_vars['firstRow']->value;?>
');
    var post_id = parseInt('<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
');
    var praiseing = false;
    var collecting = false;
    var see_lz = parseInt('<?php echo $_smarty_tpl->tpl_vars['see_lz']->value;?>
');
    var item_id = 0;
    var buying = false;
    var recharge_num = 0;

    //分享的参数
	var share_title = <?php if ($_smarty_tpl->tpl_vars['post']->value['title']){?>'<?php echo $_smarty_tpl->tpl_vars['post']->value['title'];?>
'<?php }else{ ?>'sama'<?php }?>;
	var share_pic = '<?php echo $_smarty_tpl->tpl_vars['post_user']->value['headimgurl'];?>
';
	console.log(share_pic)
	var desc_str = <?php if ($_smarty_tpl->tpl_vars['share_desc']->value){?>'<?php echo quotemeta($_smarty_tpl->tpl_vars['share_desc']->value);?>
'<?php }else{ ?>'帖子分享'<?php }?>;
	var share_desc = desc_str.substr(0,30);
	var share_url = document.location.href;
</script>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/lazy-load-img.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/front/iscroll.js"></script>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/praise_comment_load.js"></script>	
<?php }else{ ?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/normal_comment_load.js"></script>	
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/cf_detail.js"></script>
<script>
	var one_support_money = parseFloat('<?php echo $_smarty_tpl->tpl_vars['cf']->value['one_support'];?>
');
</script>
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/praise_detail.js"></script>
<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
<script type="text/javascript" src="__PUBLIC__/Js/front/js/reward_detail.js"></script>
<?php }?>

<script>


	$(function(){

		//评论
		function commitComment(data){
			var data = JSON.parse(data);  
			// alert(data);
			$('.comment_list').append(html);
		}
		//举报
		$('.jubao_box_row').on('click',function(){
			$(this).addClass('active').siblings().removeClass('active');
		})
		$('.jb_btn_close').on('click',function(){
			$('.jubao_box').hide();
		})
		$('.jubao').on('click',function(){
			$('.jubao_box').show();
		})
		$('.jb_tijiao').on('click',function(){
			$('.jubao_box').hide();
			setTimeout(function(){
				toast('举报成功','succ');
			},100)
		})
		//懒加载
		var lazyLoadImg = new LazyLoadImg({
	        el: document.querySelector('#load_wrapper'),
	        mode: 'default', //默认模式，将显示原图，diy模式，将自定义剪切，默认剪切居中部分
	        time: 250, // 设置一个检测时间间隔
	        complete: true, //页面内所有数据图片加载完成后，是否自己销毁程序，true默认销毁，false不销毁
	        position: { // 只要其中一个位置符合条件，都会触发加载机制
	          top: 0, // 元素距离顶部
	          right: 0, // 元素距离右边
	          bottom: 0, // 元素距离下面
	          left: 0 // 元素距离左边
	        },
	        before: function () { // 图片加载之前执行方法
	          
	        },
	        success: function (el) { // 图片加载成功执行方法
	          // el.classList.add('success');
	          myScroll.refresh();
	        },
	        error: function (el) { // 图片加载失败执行方法
	          // el.src = './images/error.png'
	        }
	    })

		<?php if ($_smarty_tpl->tpl_vars['del']->value){?>

	    //删除
	    $('#delete').on('click',function(){
	    	$('.confirm_box').show();

	    })
	    $('#confirmOk').on('click',function(){

	    	// alert('蛤蛤蛤')
	    	$.ajax({
	    		url:'/FrontChannel/del_post',
	    		type:'post',
	    		data:{post_id:post_id},
	    		success:function(r){
	    			if(r.code == 0){
	    				tan_tishi('帖子删除成功');
	    				setTimeout(function(){
	    					native_listen('back_reload');
	    				}, 1000);
	    			}else{
	    				tan_tishi(r.msg);
	    			}
	    		}
	    	})

	    	$('.confirm_box').hide();
	    })
	    $('#confirmCancel').on('click',function(){
	    	$('.confirm_box').hide();
	    })
	 
	    <?php }?>


		<?php if ($_smarty_tpl->tpl_vars['is_jd']->value){?>

		//删除
		$('#jdelete').on('click',function(){
			$('.confirm_box').show();

		})
		$('#confirmOk').on('click',function(){

			// alert('蛤蛤蛤')
			$.ajax({
				url:'/FrontChannel/del_post',
				type:'post',
				data:{post_id:post_id},
				success:function(r){
					if(r.code == 0){
						tan_tishi('帖子删除成功');
						setTimeout(function(){
							native_listen('back_reload');
						}, 1000);
					}else{
						tan_tishi(r.msg);
					}
				}
			})

			$('.confirm_box').hide();
		})
		$('#confirmCancel').on('click',function(){
			$('.confirm_box').hide();
		})

		<?php }?>



		// 百分比
		$('.p2').width($('.p2').attr("data-width")+"%")

		//点赞
		$('body').on('click','.icon_zan', function(){
			if(praiseing){
				return;
			}
			var obj = $(this);
			praiseing = true;
			var comment_id = $(this).data('comment_id');
			if($(this).hasClass('hover')){
				var type = 2;
			}else{
				var type = 1;
			}
			$.ajax({
				url:'/Front/praise',
				type:'post',
				data:{id:comment_id, praise_type:'comment', type:type},
				success:function(r){
					if(r.code == 0){
						if(type == 1){
							var zan_num = parseInt(obj.parent().find('.zan_num').html())+1;
							obj.parent().find('.zan_num').html(zan_num);
							obj.addClass('hover');
						}else{
							var zan_num = parseInt(obj.parent().find('.zan_num').html())-1
							obj.parent().find('.zan_num').html(zan_num);
							obj.removeClass('hover');
						}
					}else{

					}
					praiseing = false;
				}
			})
			
		})
		//图片正方形
		var liw = $('.imgbox li').width();
		$('.imgbox li').height(liw);

		//底部点赞和收藏
		$('.zan').on('click',function(){
			if(praiseing){
				return;
			}
			praiseing = true;
			var obj = $(this);
			praiseing = true;
			
			if($(this).hasClass('active')){
				var type = 2;
			}else{
				var type = 1;
			}
			$.ajax({
				url:'/Front/praise',
				type:'post',
				data:{id:post_id, praise_type:'post', type:type},
				success:function(r){
					if(r.code == 0){
						if(type == 1){
							obj.addClass('active');
						}else{
							obj.removeClass('active');
						}
					}else{

					}
					praiseing = false;
				}
			})
			// $(this).toggleClass('active');
		})
		$('.coll').on('click',function(){
			if(collecting){
				return;
			}
			var obj = $(this);
			if($(this).hasClass('active')){
				var type = 2;
			}else{
				var type = 1;
			}

			collecting = true;
			$.ajax({
				url:'/Front/collect',
				type:'post',
				data:{id:post_id, type:type},
				success:function(r){
					if(r.code == 0){
						tan_tishi(r.msg)
						obj.toggleClass('active');
					}
					collecting = false;
				}
			})
			
		})
		//全屏查看1
		$(function(){
			$(document).on('click', '.post_imgs img', function(event){
				event.preventDefault();
				var row = $(this).data('row');
				console.log
				var img_urls = [];
				console.log($(this).parent().parent())
				$(this).parent().find('img').each(function() {        
				    img_urls.push($(this).data("img"));
				});
				var html = '';
				for(i=0;i<img_urls.length;i++){
					html += '<div class="swiper-slide fullscreen_slide"><img src="'+img_urls[i]+'"/></div>';
				}
				$('#swiper_wrapper').empty().append(html);
				console.log(img_urls);
				$('#fullscreen').fadeIn();
				var full_swiper = new Swiper('.fullscreen',{
				    //pagination : '.full_pagination',
				});

				full_swiper.slideTo(row, 0, false);
				if(row==0){
					$("#swiper_wrapper").css({
						"transform": "translate3d(0px, 0px, 0px)"
					});
				}
				
			});
			// 关闭查看器
			$('#fullscreen').on('click', function(event) {
				event.preventDefault();
				$(this).fadeOut();
			});
		})

		//全屏查看2
		$(function(){
			$(document).on('click', '.img', function(event){
				event.preventDefault();
				var row = $(this).data('row');
				var img_urls = [];
				console.log($(this).parent().parent())
				$(this).parent().parent().find('.img').each(function() {        
				    img_urls.push($(this).data("img"));
				});
				var html = '';
				for(i=0;i<img_urls.length;i++){
					html += '<div class="swiper-slide fullscreen_slide"><img src="'+img_urls[i]+'"/></div>';
				}
				$('#swiper_wrapper').empty().append(html);
				console.log(img_urls);
				$('#fullscreen').fadeIn();
				var full_swiper = new Swiper('.fullscreen',{
				    //pagination : '.full_pagination',
				});
				full_swiper.slideTo(row, 0, false);
				if(row==0){
					$("#swiper_wrapper").css({
						"transform": "translate3d(0px, 0px, 0px)"
					});
				}
				
			});
			// 关闭查看器
			$('#fullscreen').on('click', function(event) {
				event.preventDefault();
				$(this).fadeOut();
			});
		})

		//微信和支付宝
		$(".pay").on("click",function(){

	  		$(this).find('.paymethod').addClass("on");
	  		$(this).find("input").prop("checked",true);
	  		$(this).siblings("div").children("input").attr("checked","false");
	  		$(this).siblings("div").children("span").removeClass("on");
	  		var val_payPlatform = $('.choose_pay input[name="pay_method"]:checked ').val();
	  		console.log(val_payPlatform);
  		})
		//购买-充值
		// $('.buy_btn').on('click',function(){
		// 	$('#recharge').show();
		// })

		//选择金额
  		$('.money').on('click',function(){
  			recharge_num = $(this).data('money')
  			$(this).addClass('active').siblings().removeClass('active');
  		})	
		//充值-关闭
  		$('#recharge .close_recharge').on('click',function(){
  			$('#recharge').hide();
  			buying = false;
  			// $('.zdy_money').html('').attr('data-money', '');
		   //  $('.money').removeClass('active');
		   //  $('.customize').val('').show();
		   //  $('.zdy_money').hide();
  		})
  		//充值
  		$('#chongzhi').on('click', function(){
  			recharge_num = $('.recharge_pop').find('.btn_group').find('.active').attr('data-money');
            if(recharge_num == ''){
                toast('请输入充值金额', 'fail');
                is_click = false;
                return;
            }

            if(recharge_num < 20){
                toast('最低充值为20元哦( • ̀ω•́ )✧', 'fail');
                is_click = false;
                return;
            }

  			console.log('recharge_num:'+recharge_num)
  			$('.amount').html(recharge_num+'元');
  			$('#recharge').hide();
  			$('#pay_box').show();
  		})
		//支付关闭
  		$('#pay_box .close_pay').on('click',function(){
  			$('#pay_box').hide();
  			buying = false;
  		})
  		//支付按钮
  		$('#zhifu').on('click',function(){
  			// alert('支付');
  			var payway = $('[name="pay_method"]:checked').val()
  			// recharge_num = $('.recharge_pop').find('.btn_group').find('.active').data('money');

  			console.log(payway);
  			console.log(recharge_num);

  			$.ajax({
				url:'/FrontUserCenter/payment',
				type:'post',
				data:{recharge_num:recharge_num, payway:payway},
				success:function(r){
					console.log(r);
					if(r.code == 0){
						native_listen(payway,{
						    parameter : r.parameter,
						});
					}else{
						layer.open({
			                content: '支付失败',
			                title: false,
			                btn: ['确定'],
			            });
					}
					buying = false;
				}
			})


  		})
  		//密码
  		$('#pwd_ipt').on('input',function(){

  			var len = $('#pwd_ipt').val().trim().length;
  			console.log(len);
  			for(var i=0;i<len;i++){
				$(".dot").eq(i).addClass('show');

			}
			for(var j=len;j<6;j++){
				$(".dot").eq(j).removeClass('show');
			}

			if(len===6){
				if(buying){
					return;
				}
				buying = true;
				var pwd = $(this).val();
				
				setTimeout(function(){
					$.ajax({
						url:'/FrontChannel/check_pwd',
						type:'post',
						data:{pwd:pwd},
						success:function(r){
							if(r.code == 1){
								toast(r.msg, 'fail');
								// tan_tishi(r.msg);
								$('#pwd_ipt').val('');
								$('.dot').removeClass('show');
								buying = false;
							}else{

								<?php if ($_smarty_tpl->tpl_vars['opt']->value=='praise'){?>
								praise_buy(item_id);
								<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='reward'){?>
								look(post_id);
								<?php }elseif($_smarty_tpl->tpl_vars['opt']->value=='crowdfunding'){?>
								cf_buy(post_id);
								<?php }?>



							}
						}
					})
				},300)

			}

  		})
  		//关闭密码
  		$('.close_pwd').on('click',function(){
  			$('#pwd_box').hide();
  			$('#pwd_ipt').val('');
  			$('.dot').removeClass('show');
  		})
  		
  		$('.customize').blur(function(){
		    var price = $(this).val();
		    if(price != ''){
		        $('.zdy_money').html(price+'元');
		        $('.zdy_money').attr('data-money', price);
		        $('.money').removeClass('active');
		        $('.customize').hide();
		        $('.zdy_money').addClass('active').show();
		        recharge_num = price;
		        console.log(recharge_num)
		    }else{
		    	$('.money').eq(0).addClass('active');
		    }
		})

		$('.zdy_money').on('click', function(){
		    $(this).hide();
		    $('.customize').show().focus();
		})
  		
	})
	
	function check_npw(price){
		var npw = false;
		$.ajax({
			url:'/FrontChannel/check_npw_pay',
			data:{price:price},
			type:'post',
			async:false,
			success:function(r){
				if(parseInt(r) == 1){
					npw = true;
				}
			}
		})
		return npw;
	}


	//发评论
	console.log(post_id);
	$('.input').on('click',function(){
		native_listen('send_comment',{
			post_id:post_id,
			comment_id:0,
			name:'',
		})
		
	})
	//回复
	$('.user_comment').on('click', '.icon_pl', function(e){
		e.stopPropagation();
		var comment_id = $(this).data('comment_id');
		var nickname = $(this).data('nickname');
		console.log(comment_id)
		native_listen('send_comment',{
			post_id:post_id,
			comment_id:comment_id,
			name:nickname,
		})
	})
	$('.user_comment').on('click', '.text', function(){
		var comment_id = $(this).data('comment_id');
		var nickname = $(this).data('nickname');
		console.log(comment_id);
		native_listen('send_comment',{
			post_id:post_id,
			comment_id:comment_id,
			name:nickname,
		})
	})

</script>


	
	<?php if (@ACTION_NAME=='mall_home'){?>
		<script type="text/javascript">
		     $('#slider_cont').flexslider({
		          animation: "fade",
		          direction: "horizontal",
		          easing: "swing",
		     });
		</script>
	<?php }?>

</body>
</html>
<?php }?>
<?php }} ?><?php /* Smarty version Smarty-3.1.6, created on 2017-09-21 14:46:31
         compiled from "D:\wamp64\www\sama\Tpl\FrontChannel\praise_detail_content.html" */ ?>
<?php if ($_valid && !is_callable('content_59c3604800032')) {function content_59c3604800032($_smarty_tpl) {?><!-- 分数 -->
	<div class="pinfen">
		<strong><?php echo $_smarty_tpl->tpl_vars['avg_score']->value;?>
分</strong><span>鉴定师评价平均分</span>
	</div>
	
	<?php if (!$_smarty_tpl->tpl_vars['see_hide']->value){?>
	<!-- 购买 -->
	<div class="buy">
		<h4>此处隐藏<?php echo $_smarty_tpl->tpl_vars['praise_hide']->value['str_len'];?>
字，<?php echo count($_smarty_tpl->tpl_vars['praise_hide']->value['hide_imgs']);?>
图</h4>
		<p><strong>¥<?php echo $_smarty_tpl->tpl_vars['praise_hide']->value['price'];?>
</strong><?php echo $_smarty_tpl->tpl_vars['hide_buy_num']->value;?>
人购买</p>
		<a href="javascript:;" class="buy_btn main" data-item_id="<?php echo $_smarty_tpl->tpl_vars['praise_hide']->value['praise_hide_id'];?>
">购买</a>
	</div>
	<?php }?>

	<!-- 鉴定师评论 -->
	<div class="jd_comment">
		<h5 class="comment_title">鉴定师评论（<?php echo count($_smarty_tpl->tpl_vars['jd_list']->value);?>
）</h5>
		<?php if ($_smarty_tpl->tpl_vars['jd_list']->value){?>
		<div class="jd_list">
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['jd_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
			<div class="jd_one">
				<a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['v']->value['user_id'];?>
"  class="avatar native_go"><img data-src="<?php echo $_smarty_tpl->tpl_vars['v']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" src="
/Public/Images/img/no-img.png"  alt=""></a>
				<div class="jd_main">
					<h3 class="name_txt">
					<span class="nickname"><?php echo $_smarty_tpl->tpl_vars['v']->value['nickname'];?>
 </span>
					<span class="fen">评分:<strong><?php echo $_smarty_tpl->tpl_vars['v']->value['score'];?>
</strong></span>
					</h3>
					<p class="time"><span><?php echo $_smarty_tpl->tpl_vars['v']->value['floor'];?>
楼</span><span><?php echo $_smarty_tpl->tpl_vars['v']->value['addtime'];?>
</span></p>
					<p class="text"><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</p>
				</div>
			</div>
			<?php } ?>
		</div>
		<!-- 查看更多 -->
		<div class="see_more">
			<i class="icon_arrow"></i>查看更多
		</div>
		<!-- 收起 -->
		<div class="shouqi">
			<i class="icon_shouqi"></i>收起
		</div>
		<?php }else{ ?>
		<!-- 么有评论 -->
		<div class="no_pl">
			暂无鉴定师评论，快成为第一个吧～
		</div>
		<?php }?>
		<?php if ($_smarty_tpl->tpl_vars['is_jd']->value){?>
			<?php if ($_smarty_tpl->tpl_vars['can_jd']->value){?>
			<!-- 我要打分 -->
			<div class="dafen">
				<a href="/FrontChannel/jd_score/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
" class="native_go" style="width: 48%">
					我要打分
				</a>
				<a class="native_go" style="width: 48%">
					<p  class="jdelete" id="jdelete" >删除本贴</p>
				</a>
			</div>
			<?php }else{ ?>
			<!--  已评分 -->
			<div class="dafen_yes">
				<a href="javascript:;">
					已评分
				</a>
			</div>
			<?php }?>
		<?php }?>
	</div>

	<script>
		var len = $('.jd_list .jd_one').size();
		// console.log(len);
		if(len>1){
			$('.jd_list .jd_one:gt(0)').hide();
			$('.see_more').show();
		}else{
			$('.see_more').hide();
			$('.shouqi').hide();
		}

		$('.see_more').on('click',function(){
			$(this).hide();
			$('.jd_list .jd_one').show();
			$('.shouqi').show();
			setTimeout(function(){
	            myScroll.refresh();
	        },300);
		})
		$('.shouqi').on('click',function(){
			$(this).hide();
			$('.jd_list .jd_one:gt(0)').hide();
			$('.see_more').show();
			setTimeout(function(){
	            myScroll.refresh();
	        },300);
		})

	</script>
<?php }} ?><?php /* Smarty version Smarty-3.1.6, created on 2017-09-21 14:46:32
         compiled from "D:\wamp64\www\sama\Tpl\FrontChannel\reward_detail_content.html" */ ?>
<?php if ($_valid && !is_callable('content_59c3604812ba5')) {function content_59c3604812ba5($_smarty_tpl) {?><div class="xuanshang">
		<h4>悬赏价：¥<?php echo $_smarty_tpl->tpl_vars['reward']->value['reward_money'];?>
</h4>
		<p>满足：<strong><?php echo $_smarty_tpl->tpl_vars['answer_num']->value;?>
人</strong></p>
		<?php if ($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::REWARDING){?>
			<?php if (!$_smarty_tpl->tpl_vars['is_lz']->value){?>
				<?php if (!$_smarty_tpl->tpl_vars['is_hd']->value){?>
				<!-- 我来满足你 -->
				<a href="/FrontChannel/my_answer/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
" class="orange_btn native_go">我来满足你</a>
				<?php }else{ ?>
				<a href="javascript:;" class="grey_btn">我来满足你</a>
				<?php }?>
			<?php }else{ ?>
			<a href="javascript:;" class="orange_btn refund">申请退款</a>
			<?php }?>
		<?php }elseif($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::ADOPTED){?>
			<?php if ($_smarty_tpl->tpl_vars['is_lz']->value){?>
			<a href="javascript:;" class="grey_btn">悬赏成功</a>
			<?php }else{ ?>
				<?php if ($_smarty_tpl->tpl_vars['is_best_user']->value){?>
				<!-- 我也想看-最佳答主 -->
				<a href="javascript:;" class="weiguan_btn">我也想看：¥<?php echo $_smarty_tpl->tpl_vars['look_price']->value;?>
</a>
				
				<?php }else{ ?>
					<?php if (!$_smarty_tpl->tpl_vars['see_answer']->value){?>
					<!-- 我也想看-普通用户 -->
					<a href="javascript:;" class="want_see look_buy">我也想看：¥<?php echo $_smarty_tpl->tpl_vars['look_price']->value;?>
</a>
					<?php }else{ ?>
					<!-- 已围观 -->
					<a href="javascript:;" class="weiguan_btn">已围观</a>
					<?php }?>
				<?php }?>
			<?php }?>
		
		<?php }elseif($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::NOT_ADOPTED){?>
		<a href="javascript:;" class="grey_btn">悬赏失败</a>
		<?php }elseif($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::REFUNDING){?>
			<?php if ($_smarty_tpl->tpl_vars['is_lz']->value){?>
			<a href="javascript:;" class="grey_btn">申请退款</a>
			<?php }else{ ?>
			<!-- 我来满足你-灰色状态 -->
			<a href="javascript:;" class="grey_btn">我来满足你</a>
			<?php }?>
		<?php }elseif($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::REFUNDED){?>
		<a href="javascript:;" class="grey_btn">悬赏失败</a>
		<?php }else{ ?>
		<a href="javascript:;" class="grey_btn">我来满足你</a>
		<?php }?>
	</div>
	
	<?php if ($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::ADOPTED&&$_smarty_tpl->tpl_vars['see_answer']->value){?>
	<!-- 最佳答案 -->
	<div class="best_comment">
		<h5 class="comment_title"><?php if ($_smarty_tpl->tpl_vars['is_best_user']->value){?>我的答案（1）<?php }else{ ?>最佳答案<?php }?></h5>
		<div class="best_list">
			<div class="reply_one">
				<a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['best_answer']->value['user_id'];?>
" class="avatar native_go">
				<img data-src="<?php echo $_smarty_tpl->tpl_vars['best_answer']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" src="/Public/Images/img/no-img.png" alt=""></a>
				<div class="reply_main">
					<h3 class="nickname"><?php echo $_smarty_tpl->tpl_vars['best_answer']->value['nickname'];?>
<span class="caina_btn">已采纳!</span><i class="icon_best"></i></h3>
					<p class="time"><span>1楼</span><span><?php echo $_smarty_tpl->tpl_vars['best_answer']->value['addtime'];?>
</span></p>
					<p class="text"><?php echo $_smarty_tpl->tpl_vars['best_answer']->value['content'];?>
</p>
					<ul class="imgbox clearfix">
						<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['best_answer']->value['imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
						<li><img src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageView2/1/w/200/h/200/imageslim" class="img" alt="" data-row="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/imageslim" alt=""></li>
						<?php } ?>
					</ul>
				</div>
			</div>
			
			
		</div>
	</div>
	<?php }?>
	

	<?php if ($_smarty_tpl->tpl_vars['is_lz']->value){?>
		<div class="da_comment">
			<h5 class="comment_title">用户满足答案（<?php echo count($_smarty_tpl->tpl_vars['answer_list']->value);?>
）</h5>
			<!-- 列表 -->
			<?php if ($_smarty_tpl->tpl_vars['answer_list']->value){?>
			<div class="da_list">
				<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['answer_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
				<div class="da_one">
					<a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['v']->value['user_id'];?>
"><img data-src="<?php echo $_smarty_tpl->tpl_vars['v']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim"  src="/Public/Images/img/no-img.png" alt="" class="avatar native_go"></a>
					<div class="da_main">
						<h3 class="nickname"><?php echo $_smarty_tpl->tpl_vars['v']->value['nickname'];?>
 <?php if ($_smarty_tpl->tpl_vars['v']->value['reward_answer_id']==$_smarty_tpl->tpl_vars['best_answer']->value['reward_answer_id']&&$_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::ADOPTED){?><span class="caina_btn">已采纳!</span><i class="icon_best"></i><?php }elseif($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::REWARDING){?><span class="caina" data-answer_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['reward_answer_id'];?>
">采纳答案</span><?php }else{ ?><span class="wcn">未采纳</span><?php }?></h3>
						<p class="time"><span><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
楼</span><span><?php echo $_smarty_tpl->tpl_vars['v']->value['addtime'];?>
</span></p>
						<p class="text"><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</p>
					</div>
					<ul class="imgbox clearfix">
						<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['v']->value['imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
						<li><img src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageView2/1/w/200/h/200/imageslim" class="img" alt="" data-row="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/imageslim" alt=""></li>
						<?php } ?>
					</ul>
				</div>
				<?php } ?>
			</div>
			<?php }else{ ?>
			<!-- 没答案 -->
			<div class="no_da">
				还没有人给出满足答案呢～
			</div>
			<?php }?>
		</div>
	<?php }else{ ?>

		<?php if ($_smarty_tpl->tpl_vars['answer_list']->value&&!$_smarty_tpl->tpl_vars['is_best_user']->value){?>
		<!-- 我的答案 -->
		<div class="reply_comment">
			<h5 class="comment_title">我的答案（<?php echo count($_smarty_tpl->tpl_vars['answer_list']->value);?>
）</h5>
			<div class="reply_list">
				
				<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['answer_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
				<div class="reply_one">
					<a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['v']->value['user_id'];?>
" class="avatar"><img src="<?php echo $_smarty_tpl->tpl_vars['v']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" alt=""></a>
					<div class="reply_main">
						<!-- 评选中&&未采纳时候 -->
						<h3 class="nickname"><?php echo $_smarty_tpl->tpl_vars['v']->value['nickname'];?>
 <?php if ($_smarty_tpl->tpl_vars['reward']->value['status']==RewardModel::REWARDING){?><span class="pxz">评选中</span><?php }else{ ?><span class="wcn">未采纳</span><?php }?></h3>
						
						<p class="time"><span><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
楼</span><span><?php echo $_smarty_tpl->tpl_vars['v']->value['addtime'];?>
</span></p>
						<p class="text"><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</p>
						<ul class="imgbox clearfix">
							<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['v']->value['imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
							<li><img  src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageView2/1/w/200/h/200/imageslim" class="img" alt="" data-row="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/imageslim" alt=""></li>
							<?php } ?>
						</ul>
					</div>
				</div>
				<?php } ?>
				
			</div>
		</div>
		
		<?php }?>
	<?php }?><?php }} ?><?php /* Smarty version Smarty-3.1.6, created on 2017-09-21 14:46:32
         compiled from "D:\wamp64\www\sama\Tpl\FrontChannel\crowdfunding_detail_content.html" */ ?>
<?php if ($_valid && !is_callable('content_59c360483f5b6')) {function content_59c360483f5b6($_smarty_tpl) {?><div class="zhonchou_main">
		<div class="zhonchou_main_top">
			<div class="price">
				<span class="total">心愿总价：¥<?php echo $_smarty_tpl->tpl_vars['cf']->value['goal_money'];?>
</span><span class="current">已筹金额：¥<?php echo $_smarty_tpl->tpl_vars['cf']->value['now_money'];?>
</span>
			</div>
			<div class="p1" >
				<p class="p2" data-width="<?php if ($_smarty_tpl->tpl_vars['cf']->value['cf_rate']>=100){?>100<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['cf']->value['cf_rate'];?>
<?php }?>"></p>
			</div>
			<p class="bottom"><span>支持：<strong><?php echo (($tmp = @$_smarty_tpl->tpl_vars['cf']->value['support_user_num'])===null||$tmp==='' ? 0 : $tmp);?>
人</strong></span><span>剩余天数：<strong><?php echo (($tmp = @$_smarty_tpl->tpl_vars['cf']->value['left_day'])===null||$tmp==='' ? 0 : $tmp);?>
天</strong></span><span>已完成 <strong><?php echo (($tmp = @$_smarty_tpl->tpl_vars['cf']->value['cf_rate'])===null||$tmp==='' ? 0 : $tmp);?>
%</strong></span></p>
		</div>
		<div class="zhonchou_main_bot">
			<?php if ($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::PASSED){?>
				<?php if ($_smarty_tpl->tpl_vars['first_support']->value){?>
				<!-- 我也参加 -->
				<a href="javascript:;" class="btn_cj" id="canjia">我也参加</a>
				<?php }else{ ?>
				<!-- 继续帮助他 -->
				<a href="javascript:;" class="btn_bz">继续帮助TA</a>
				<?php }?>
			<?php }elseif($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::FAILURE&&!$_smarty_tpl->tpl_vars['first_support']->value){?>
			<!-- 心愿结束 参与人员-->
			<a href="javascript:;" class="btn_end">心愿结束</a>
			<p>心愿失败后，管理员将会统计后7个工作日内将金额退至钱包，请注意查收</p>
			<?php }elseif($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::SUCCESS&&!$_smarty_tpl->tpl_vars['first_support']->value&&!$_smarty_tpl->tpl_vars['is_lz']->value){?>
				<!-- 心愿成功 参与人员看到的 -->
				<!-- <div class="btn_two clearfix"> -->
					
						<?php if (!$_smarty_tpl->tpl_vars['cf']->value['is_ht']){?>
						<!-- 提醒  -->
						<!-- <a href="javascript:;" class="btn_tx">提醒楼主回帖</a> -->
						<!-- 已提醒 -->
						<a href="javascript:;" class="btn_end">心愿成功</a>
						<p>心愿成功，等待楼主回帖</p>
						<?php }else{ ?>
						
						<!-- <a href="javascript:;" class="btn_ht">查看楼主回帖</a> -->
						<a href="/FrontChannel/cf_reply_detail/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
" class="btn_huitie">查看楼主回帖</a>
						<?php }?>
						<!-- 投诉 -->
						<!-- <a href="javascript:;" class="btn_ts">投诉楼主</a> -->
					
				<!-- </div> -->
					
			<?php }elseif($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::SUCCESS&&$_smarty_tpl->tpl_vars['is_lz']->value){?>
				<?php if (!$_smarty_tpl->tpl_vars['cf']->value['is_ht']){?>
				<!-- 楼主回帖 -->
				<a href="/FrontChannel/cf_reply/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
" class="btn_huitie native_go">楼主回帖</a>
				<?php }else{ ?>
				<a href="/FrontChannel/cf_reply_detail/post_id/<?php echo $_smarty_tpl->tpl_vars['post']->value['post_id'];?>
" class="btn_huitie native_go">查看回帖</a>
				<?php }?>
			<?php }else{ ?>
			<!-- 心愿结束 普通人员看到的 -->
			<a href="javascript:;" class="btn_end">心愿结束</a>
			<?php }?>
		</div>
	</div>
	
	<?php if ($_smarty_tpl->tpl_vars['support_list']->value){?>
	<div class="zhonchou_people">
		<div class="people_top clearfix">
			<a href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['support_list']->value[0]['user_id'];?>
" class="avatar native_go">
				<img src="<?php echo $_smarty_tpl->tpl_vars['support_list']->value[0]['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" alt="">
				<?php if ($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::FAILURE){?>
				<!-- 灰色 -->
				<span class="icon_best_gray"></span>
				<?php }else{ ?>
				<!-- 红色 -->
				<span class="icon_best"></span>
				<?php }?>
			</a>
			<a class="nickname native_go" href="/FrontUserCenter/others_space/user_id/<?php echo $_smarty_tpl->tpl_vars['support_list']->value[0]['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['support_list']->value[0]['nickname'];?>
</a>
			<?php if ($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::FAILURE){?>
			<!-- 灰色状态 -->
			<span class="best_fail">最佳金主</span>
			<?php }else{ ?>
			<!-- 橘黄 -->
			<span class="best">最佳金主</span>
			<?php }?>
			
		</div>
		<div class="people_bot clearfix">
			<span>参与人员</span> 
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['support_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
				<?php if ($_smarty_tpl->tpl_vars['k']->value<8){?>
				<a>
					<img src="<?php echo $_smarty_tpl->tpl_vars['v']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" alt="">
				</a>
				<?php }?>
			<?php } ?>
			<i class="icon_zhankai"></i>
		</div>
	</div>
	<?php }?><?php }} ?><?php /* Smarty version Smarty-3.1.6, created on 2017-09-21 14:46:32
         compiled from "D:\wamp64\www\sama\Tpl\FrontChannel\praise_comment_hide.html" */ ?>
<?php if ($_valid && !is_callable('content_59c3604869aea')) {function content_59c3604869aea($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['v']->value['has_hide']){?>
	<?php if ($_smarty_tpl->tpl_vars['v']->value['is_show']){?>
	<!-- 隐藏内容 -->
	<div class="show_cont">
		<div class="text">
			<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_hide']['content'];?>

		</div>
		<ul class="imgbox clearfix">
			<?php  $_smarty_tpl->tpl_vars['img'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['img']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['v']->value['comment_hide']['hide_imgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['img']->key => $_smarty_tpl->tpl_vars['img']->value){
$_smarty_tpl->tpl_vars['img']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['img']->key;
?>
			<li><img src="/Public/Images/img/no-img.png" data-src="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageView2/1/w/200/h/200/imageslim" alt="" class="img" data-row="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"  data-img="<?php echo $_smarty_tpl->tpl_vars['img']->value;?>
?imageMogr2/auto-orient/imageslim"></li>
			<?php } ?>
										
		</ul>
	</div>
	<?php }else{ ?>
	<!-- 购买 -->
	<div class="buy" style="margin-bottom: 0;margin-left: -3.6rem;margin-right:-0.6rem;">
		<h4>此处隐藏<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_hide']['str_len'];?>
字，<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_hide']['img_num'];?>
图</h4>
		<p><strong>¥<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_hide']['price'];?>
</strong><?php echo $_smarty_tpl->tpl_vars['v']->value['comment_hide']['buy_num'];?>
人购买</p>
		<a href="javascript:;" class="buy_btn" data-item_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['comment_hide']['praise_hide_id'];?>
">购买</a>
	</div>
	<?php }?>
<?php }?><?php }} ?><?php /* Smarty version Smarty-3.1.6, created on 2017-09-21 14:46:32
         compiled from "D:\wamp64\www\sama\Tpl\FrontChannel\support_list.html" */ ?>
<?php if ($_valid && !is_callable('content_59c360487b78a')) {function content_59c360487b78a($_smarty_tpl) {?><div class="look_people">
	<div class="mask"></div>
	<div class="people_content">
		<h2 class="title"><span class="close" id="guanbi">关闭</span>心愿参与人员</h2>
		<div class="people_wrapper" id="people_wrapper">
			<ul class="people_list">
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['support_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
			<li>
				<a class="avatar">
					<img src="<?php echo $_smarty_tpl->tpl_vars['v']->value['headimgurl'];?>
?imageView2/1/w/200/h/200/imageslim" alt="">
				</a>
				<div class="people_main">
					
					<h2 class="clearfix">
						<span class="nick"><?php echo $_smarty_tpl->tpl_vars['v']->value['nickname'];?>
</span>
						<?php if ($_smarty_tpl->tpl_vars['k']->value==0){?>
							<?php if ($_smarty_tpl->tpl_vars['cf']->value['status']==CrowdfundingModel::FAILURE){?>
							<!--  最佳金主 黄色  -->
							<span class="jingzhu_gray">最佳金主</span>
							<?php }else{ ?>
							<!--  心愿失败后 最佳金主 灰色的  -->
							<span class="jingzhu">最佳金主</span>
							<?php }?>
						<?php }?>
					</h2>

					<p><?php echo $_smarty_tpl->tpl_vars['v']->value['addtime'];?>
</p>
					<div class="money">心愿金：<span <?php if ($_smarty_tpl->tpl_vars['cf']->value['status']!=CrowdfundingModel::FAILURE){?>style="color:#FF6600"<?php }?>><?php echo $_smarty_tpl->tpl_vars['v']->value['total_support_money'];?>
元</span></div>
				</div>
			</li>
			<?php } ?>
			<li>
				<a class="no_more">&nbsp;没有更多了&nbsp;</a>
			</li>
		</ul>
		</div>
	</div>
</div>


<!-- 支付弹窗 -->
<div class="dialog">
	<div class="mask"></div>
	<div class="dialog_content">
		<div class="dialog_content_hd">
			<img src="/Public/Images/img/bag_chou@3x.png" alt="">
		</div>
		<div class="dialog_content_bd">
			<div class="dialog_row">
				帮TA完成 <input type="number" id="support_num" placeholder="" value="1">件心愿
			</div>
			<div class="dialog_row" style="text-align: left;">
				需支付：<span class="support_money"><strong>¥<?php echo $_smarty_tpl->tpl_vars['cf']->value['one_support'];?>
</strong></span>
			</div>
		</div>
		<div class="dialog_content_ft">
			<a class="zhifu">去支付</a>
		</div>
		<!-- 关闭 -->
		<div class="btn_close"></div>
	</div>
</div><?php }} ?><?php /* Smarty version Smarty-3.1.6, created on 2017-09-21 14:46:32
         compiled from "D:\wamp64\www\sama\Tpl\FrontChannel\reward_refund.html" */ ?>
<?php if ($_valid && !is_callable('content_59c36048872b4')) {function content_59c36048872b4($_smarty_tpl) {?><!-- 申请退款 -->
<div class="dialog sq_refund">
	<div class="mask"></div>
	<div class="dialog_content">
		<div class="dialog_content_hd">
			<h4>选择退款原因</h4>
		</div>
		<div class="dialog_content_bd">
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['reason_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
			<div class="dialog_row clearfix" data-reason_id="<?php echo $_smarty_tpl->tpl_vars['v']->value['reward_refund_reason_id'];?>
">
				<span><?php echo $_smarty_tpl->tpl_vars['v']->value['reason'];?>
</span><i class="icon_nochoose"></i>
			</div>
			<?php } ?>
		</div>
		<div class="dialog_content_ft">
			<a href="javascript:;" class="tijiao">提交</a>
		</div>
		<!-- 关闭 -->
		<div class="btn_close"></div>
	</div>
</div><?php }} ?>